-
Notifications
You must be signed in to change notification settings - Fork 3
Fixed bugs and updated LSM303 Library #4
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
base: master
Are you sure you want to change the base?
Conversation
…her 32bit processors. Fixed scope conflict causing a crashing bug when calling the breath() function.
Included new libraries that support 32bit processors and the LSM303. Verified working on ESP8266
hermes/hermes.ino
Outdated
| // Try to initialise and warn if we couldn't detect the chip | ||
| digitalWrite(ONBOARD_LED_PIN, HIGH); | ||
| if (!lsm.begin()) | ||
| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put the curly on the same line -- matches the format of the rest of the project
hermes/hermes.ino
Outdated
| if (!lsm.begin()) | ||
| { | ||
| Serial.println("Oops ... unable to initialize the LSM303. Check your wiring!"); | ||
| while (1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you want to stop here forever? maybe just having the shoe light up red isn't so bad?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. Makes more sense to go to red if the accel sensor is not working. However, at the moment only the RGB will show on the strip if this is the case. Red can be added in another branch.
|
I updated the code to use FastLED: https://github.com/climent/hermes-ng |
Fixed breathe() crashing bug.
Updated LSM303 Library to add support for 32bit processors.
Added hardware checking for LSM303