Commit Graph

5 Commits

Author SHA1 Message Date
Simon Albinsson
8bff008b36 More stable time keeping and Using new init-functions
The old time keeping routine was a bit flaky, this one might blow up in
 irritating ways if a cycle takes more than 1 second. Also uses the new
 init functions to set up the SGP.
 Be ware of the dangerous i2c-general call that resets any device on the
 buss that listens to general call.
2018-04-07 22:03:50 +00:00
Simon Albinsson
7f31f5a116 Compoartmentalzation of the init proccess
in order to make the start-up code less messy all parts of startup is
devided into its own funciontion
2018-04-07 22:02:07 +00:00
Simon Albinsson
ce65ae86b4 Adds sleep-support to command struct
It is cleaner to store the needed wait-time with the struct than to
passit to the read-write function. This change mostly acopmplieshs that
2018-04-07 21:58:00 +00:00
Simon Albinsson
7053a2cba9 Imports json, system libs and so on
Ads various imports for time keeping and data persistance
2018-04-07 21:47:40 +00:00
Simon Albinsson
f3c15d6a80 Rough sketch, working, but no CRC
Able to read values but cant save callibration data and does not check
CRC. Also not a library
2018-03-17 21:52:55 +01:00