Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tessel & RPi compat #7

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

Tessel & RPi compat #7

wants to merge 20 commits into from

Conversation

jiahuang
Copy link

This PR merges index.js to work with both Tessel and an RPi. All Tessel workarounds are removed.

Here are the new usage examples for RPi and Tessel.

Tested and working on a Tessel. Did not test on the RPi, though none of the index.js logic changed.

natevw and others added 10 commits May 22, 2014 01:09
…/beta/issues/48

docs-o-mentation: much of it / but not all / of it.

quick fixes during initial test attempts on device

use tessel.sleep instead of spinloop

attempted workaround for https://github.com/tessel/beta/issues/72, now giving Bytecode compilation error…

fix queue-async include (no improvement on https://github.com/tessel/beta/issues/73), put back relative include too just to start back over on https://github.com/tessel/beta/issues/72

start workaround for https://github.com/tessel/beta/issues/62

attempt to workaround https://github.com/tessel/beta/issues/73 by including queue-async directly but still triggers trouble

a working version of queue-async

cleaner workaround for https://github.com/tessel/beta/issues/73, closes https://github.com/tessel/beta/issues/72

quick workaround for https://github.com/tessel/beta/issues/74

remove ancient log

wrap Tessel SPI with asymetric read/write convenience

turn on debug

workaround for SPI not setting CSN

workaround for https://github.com/tessel/beta/issues/85 (corrupts queue.js internal state and causes procesing to just stop)

fix isBuffer check to handle null

workaround https://github.com/tessel/beta/issues/86

workaround for https://github.com/tessel/beta/issues/87

better note for https://github.com/tessel/beta/issues/89

tessel compiler not liking switch statement tonight, see https://github.com/tessel/beta/issues/181

workaround for https://github.com/tessel/beta/issues/198

workaround for https://github.com/tessel/beta/issues/199

add workaround for https://github.com/tessel/beta/issues/200

add workaround for https://github.com/tessel/beta/issues/201

make response log slightly less confusing

apparently SPI returns an array instead of buffer, workaround https://github.com/tessel/beta/issues/203 (although I'm not sure if this was hurting anything but debug log readability)

log written data in hex too for easier debugging

workaround for https://github.com/tessel/beta/issues/202

workaround https://github.com/tessel/beta/issues/204

typo in comment

workaround https://github.com/tessel/beta/issues/206 with own binary parse

remove workaround for https://github.com/tessel/beta/issues/73

remove workaround for https://github.com/tessel/beta/issues/74

clean up tessel wait a bit (also baby step back to merging this and main lib)

move test code out of library and back into test.js

actually, split out tessel test code into own file

start testing read/write pipes, with tiny stream.Duplex stub

add workaround for https://github.com/tessel/beta/issues/207

add note about next bug…, https://github.com/tessel/beta/issues/209

attempted workaround for some tessel number formatting stuff, but see https://github.com/tessel/beta/issues/213

workaround Tessel number handling, https://github.com/tessel/beta/issues/213 https://github.com/tessel/beta/issues/206 https://github.com/tessel/beta/issues/209

don't inject tessel module anymore

implement Tessel version of setCE, clean up some bad variable usage

better logging for TX

show sleep in debug mode on tessel

make fake stream appear ever-eager for more data reads/writes

better execCommand logging

better polling strategy on Tessel: instead of polling status, at least poll IRQ pin

add passive listen mode to test script

re-enable plain UTF-8 buffer toString

sample/test code to listen to same stuff as https://github.com/natevw/greenhouse/blob/master/greenhub.cpp#L42 + https://github.com/natevw/rooflux/blob/greenhouse/display.html#L65

remove workaround for https://github.com/tessel/beta/issues/89, .activeChipSelect is now an internal method
@natevw
Copy link
Owner

natevw commented May 22, 2014

Suwheeet, thanks for doing all this. I'm heads down on the SD/FAT stuff but am excited to test this on RasPi and merge it in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants