lancaster-university / codal-circuit-playground Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Does this SPEAKER
value sound right here? We are having issues getting proper temp readings from the CPX. Is this something tested?
Currently a MakeCode program running on a CPX advertises as a USB composite device with HID and WebUSB support. The USB VID:PID used is 0x03EB:0x2402
, which is the Atmel VID and a sample PID. (See
codal-circuit-playground/target.json
Line 13 in 003dea9
We're documenting support of WebUSB for CPX, and we also need to support it on Windows 7. Unlike Windows 10, Windows 7 needs user-installed drivers, and we need to put the VID:PID in the .inf
driver file.
We'd like to change the VID:PID to an Adafruit number. Our VID is 0x239A
. We have several defined PID's already for the CPX: 0x0018
is for the UF2 bootloader, 0x8018
is a CDC PID for use with Arduino, and 0x8019
is used by CircuitPython. We could reuse the UF2 or Arduino one for MakeCode, or we'd be happy to assign a new one. Do you have a preference or a long-term plan for uses these ID's?
We can submit a PR once we decide on the PID. Thanks!
Tagging @ladyada who's involved in this as well.
This is a follow up of microsoft/pxt-adafruit#604
Test sample:
#include "CircuitPlayground.h"
CircuitPlayground cplay;
int main()
{
while(1)
{
cplay.io.a4.setAnalogValue(0);
cplay.sleep(200);
cplay.io.a4.setAnalogValue(512);
cplay.sleep(200);
}
}
Result:
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.