Last active
February 28, 2016 17:16
-
-
Save vschep/0e0cb3a03f23a7b4adfd to your computer and use it in GitHub Desktop.
Snippet regarding reading A/D values for my automobile blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
volatile unsigned char * adValue = (unsigned char *) 0xFFB00000; | |
void battVoltStatemachine() { | |
unsigned char battVolt = *adValue; | |
if (battVolt < 10) { | |
// change state | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment