microbit-foundation / pxt-microbit-v2-power Goto Github PK
View Code? Open in Web Editor NEWMakeCode extension for micro:bit power saving - beta
Home Page: https://microbit-foundation.github.io/pxt-microbit-v2-power/
License: MIT License
MakeCode extension for micro:bit power saving - beta
Home Page: https://microbit-foundation.github.io/pxt-microbit-v2-power/
License: MIT License
We need to change to the V2 board when the power blocks are used. MakeCode team supplied this answer on how to implement:
We switch to v2 sim based off the v2 exclusive parts; e.g. this parts attribute on a microphone block: https://github.com/microsoft/pxt-microbit/blob/master/libs/microphone/microphone.cpp#L78
Here’s where they are defined:
https://github.com/microsoft/pxt-microbit/blob/master/sim/dalboard.ts#L138
so
//% parts=”v2”
should be fine
In this program, the micro:bit enters a sleep state, but the mic LED remains lit.
https://makecode.microbit.org/_KbWfyw3zh3PT
I expect that changing this is blocked by lancaster-university/codal-microbit-v2#97, but this seems like a counterintuitive experience for people using the extension. Are we really saving power if the LED is always lit?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.