Giter Club home page Giter Club logo

pxt-crickit's Introduction

crickit Build Status

A MakeCode package to use the Adafruit CRICKIT motor shield.

License

MIT

Supported targets

  • for PXT/adafruit
  • for PXT/maker
  • for PXT/codal

(The metadata above is needed for package search.)

pxt-crickit's People

Contributors

deanm1278 avatar ladyada avatar nbogie avatar pelikhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pxt-crickit's Issues

NeoPixel port - PIN alias for faster access

Define a PIN alias for the Strip (~ A1 on Playground Express) or dedicated Strip Functions like for the 10 buildin Pixels on the CPX to allow simplified access without knowledge of the used Playground PIN.

crickit for microbit

@pelikhan i have the crickit:bit ready for testing, works great in arduino, time to test in makecode - how can we enable this pkg for 'bits?

Read Servo Pulses

I would like to READ servo angles from a remote control

Wouldn't it be nice to have built-in blocks for this too?

"crickit run motor" causes "PANIC! 108"

Describe the bug
Using "cricket run motor" block causes the editor to error out with Code 108.

To Reproduce

  1. Open: https://makecode.com/_3rF5Yz6oh6Ka
  2. Notice the panic

Expected behavior
Don't panic.

Screenshots
image

Desktop (please complete the following information):

  • OS: macOS 10.14.3 (18D109)
  • Browser Chrome 72
  • MacBook Pro 2018, i9, 32GB

Calling setPixelOff() causes errors

Adding a call to setPixelOff() will prevent the code from running.

Here's a simple example:
https://makecode.microbit.org/_PwRes9AgwRX2

Looks like a trivial fix - remove "this." :
master...nbogie:bugfix_for_setPixelOff
(Sorry, i haven't learned to build and test packages for PXT, yet)

Frustratingly, although makecode - at least /beta - reports 3 errors in pixel.ts, it doesn't present what those errors are, as far as I can see.

Versions: crickit v0.0.31, makecode 1.2.16

Cap touch is not intuitive

Cap touch pins are intended to be read as buttons but currently the block returns an analog value, which must be combined with an extra logic >= block with a number threshold to detect a touch.

I think the touchRead block should use a default threshold (700 or so) and return true if >= threshold, or false if < threshold.
An extra block can be added if the threshold for any particular cap touch pin needs to be overridden.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.