CCHS-Melbourne / iotuz-esp32-hardware

Project for the InternetOfTuz (LCA2017 Open Hardware Mini-Conference)
Other
34 stars 15 forks source link

Samples/fulldemo: Move enum into separate header. #55

Closed thaytan closed 7 years ago

thaytan commented 7 years ago

The arduino environment seems to get easily confused if enums and structs are defined in the main sketch and wants them to be in headers it can parse. Something about it rearranging the sketch to put all includes first. Without this change I get compile errors with Arduino 1.6.4 like:

fulldemo:73: error: variable or field 'lcd_test' declared void fulldemo:73: error: 'LCDtest' was not declared in this scope fulldemo:75: error: 'TS_Point' does not name a type variable or field 'lcd_test' declared void