artboffin / rocketuc Goto Github PK
View Code? Open in Web Editor NEWLibrary for fast prototyping of micro-controllers through serial protocols
License: GNU Lesser General Public License v2.1
Library for fast prototyping of micro-controllers through serial protocols
License: GNU Lesser General Public License v2.1
Support of cap sense
Command which selects pin and "streams" data from it.
i.e. when the stream command is sent the uC replies with a stream of data, no crc or other checking.
Ends with streamEnd command
This is useful for time sensitive readings, like to read acceleration.
Create a function that when a particular even happens, such as a threshold being crossed, a flag is set.
The flag stays set until the computer side reads and clears the flag.
This is to catch fast events that may be lost in transmission latency.
In the protocol we use the term CRC, but actually we only calculate a simple checksum. This should be replaced by a real CRC. See sample C code for CRC7:
const unsigned char CRC7_POLY = 0x91;
unsigned char getCRC(unsigned char message[], unsigned char length)
{
unsigned char i, j, crc = 0;
for (i = 0; i < length; i++)
{
crc ^= message[i];
for (j = 0; j < 8; j++)
{
if (crc & 1)
crc ^= CRC7_POLY;
crc >>= 1;
}
}
return crc;
}
int main()
{
// create a message array that has one extra byte to hold the CRC:
unsigned char message[3] = {0x83, 0x01, 0x00};
message[2] = getCRC(message, 2);
// send this message to the Simple Motor Controller
}
Implement Software Reset in firmware to allow client application to call this function on exit. SW reset on MSP430 could be done by sending "wrong password" to Watchdog:
WDTCTL = 0;
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.