Skip to content

Commit

Permalink
Merge pull request #18 from TheZeroBeast/Patch-5.0.3
Browse files Browse the repository at this point in the history
Patch 5.0.3
  • Loading branch information
TheZeroBeast committed Nov 21, 2018
2 parents f1b32ea + 11f1a44 commit a0eab56
Show file tree
Hide file tree
Showing 92 changed files with 27,814 additions and 41,953 deletions.
Binary file modified .DS_Store
Binary file not shown.
20 changes: 10 additions & 10 deletions Firmware/BlinkM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,23 @@
#ifdef BLINKM

#if (ARDUINO >= 100)
# include "Arduino.h"
# include "Arduino.h"
#else
# include "WProgram.h"
# include "WProgram.h"
#endif

#include "BlinkM.h"

void SendColors(byte red, byte grn, byte blu)
{
Wire.begin();
Wire.beginTransmission(0x09);
Wire.write('o'); //to disable ongoing script, only needs to be used once
Wire.write('n');
Wire.write(red);
Wire.write(grn);
Wire.write(blu);
Wire.endTransmission();
Wire.begin();
Wire.beginTransmission(0x09);
Wire.write('o'); //to disable ongoing script, only needs to be used once
Wire.write('n');
Wire.write(red);
Wire.write(grn);
Wire.write(blu);
Wire.endTransmission();
}

#endif //BLINKM
Expand Down
4 changes: 2 additions & 2 deletions Firmware/BlinkM.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
Library header file for BlinkM library
*/
#if (ARDUINO >= 100)
# include "Arduino.h"
# include "Arduino.h"
#else
# include "WProgram.h"
# include "WProgram.h"
#endif

#include "Wire.h"
Expand Down
236 changes: 118 additions & 118 deletions Firmware/Configuration.h

Large diffs are not rendered by default.

246 changes: 123 additions & 123 deletions Firmware/ConfigurationStore.cpp

Large diffs are not rendered by default.

17 changes: 13 additions & 4 deletions Firmware/ConfigurationStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,20 @@ void Config_StoreSettings();
bool Config_RetrieveSettings();
#else
FORCE_INLINE void Config_StoreSettings() {}
FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); }
FORCE_INLINE void Config_RetrieveSettings() {
Config_ResetDefault();
Config_PrintSettings();
}
#endif

inline uint8_t calibration_status() { return eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS); }
inline void calibration_status_store(uint8_t status) { eeprom_update_byte((uint8_t*)EEPROM_CALIBRATION_STATUS, status); }
inline bool calibration_status_pinda() { return eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA); }
inline uint8_t calibration_status() {
return eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS);
}
inline void calibration_status_store(uint8_t status) {
eeprom_update_byte((uint8_t*)EEPROM_CALIBRATION_STATUS, status);
}
inline bool calibration_status_pinda() {
return eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA);
}

#endif//CONFIG_STORE_H

0 comments on commit a0eab56

Please sign in to comment.