microsoft / pxt-maker

MakeCode target for "Maker" boards (beta)
https://maker.makecode.com/
Other
115 stars 80 forks source link

support for RP2040 and other new Jacdac brains #349

Closed mmoskal closed 2 years ago

github-actions[bot] commented 2 years ago

Images automagically compressed by Calibre's image-actions

Compression reduced images by 20.7%, saving 58.75 KB.

Filename Before After Improvement Visual comparison
docs/static/libs/jacdac-brain-f4.jpg 57.56 KB 45.29 KB -21.3% View diff
docs/static/libs/jacdac-brain-rp2040.jpg 57.24 KB 46.12 KB -19.4% View diff
docs/static/libs/jacdac-iot-s2.jpg 54.13 KB 42.64 KB -21.2% View diff
docs/static/libs/jacdac-nrfbrain.jpg 58.27 KB 46.61 KB -20.0% View diff
docs/static/libs/rpi-pico.jpg 56.02 KB 43.82 KB -21.8% View diff

131 images did not require optimisation.

Update required: Update image-actions configuration to the latest version before 1/1/21. See README for instructions.

ghost commented 1 year ago

@mmoskal

The Analog Pins are not working on Pico

I think it's because GPIO 26/27 are set up in makecode as 'Analog' but only as regular Analog Pins would be, not actually set to read through the Pico's ADC hardware.

Alternatively if pins A0 / A1 were included, those could be read as Analog, automatically read through the ADC I believe.

It would be great to getting Analog Inputs working on the Pico in MakeCode - if you have the ability to update the files, here's the documentation from Pi:

https://www.raspberrypi.com/documentation/pico-sdk/hardware.html#hardware_adc