diff --git a/examples/C02_SIMPLE/C02_SIMPLE.ino b/examples/C02_SIMPLE/C02_SIMPLE.ino index e96b7b2..e4931fc 100644 --- a/examples/C02_SIMPLE/C02_SIMPLE.ino +++ b/examples/C02_SIMPLE/C02_SIMPLE.ino @@ -17,7 +17,8 @@ https://www.airgradient.com/ Kits with all required components are available at https://www.airgradient.com/open-airgradient/shop/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License + */ #include diff --git a/examples/CO2_TRAFFIC_LIGHT/CO2_TRAFFIC_LIGHT_SIMPLE.ino b/examples/CO2_TRAFFIC_LIGHT/CO2_TRAFFIC_LIGHT_SIMPLE.ino index 02acb17..6b6ff6e 100644 --- a/examples/CO2_TRAFFIC_LIGHT/CO2_TRAFFIC_LIGHT_SIMPLE.ino +++ b/examples/CO2_TRAFFIC_LIGHT/CO2_TRAFFIC_LIGHT_SIMPLE.ino @@ -21,7 +21,8 @@ If you have any questions please visit our forum at https://forum.airgradient.co If you are a school or university contact us for a free trial on the AirGradient platform. https://www.airgradient.com/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License + */ #include diff --git a/examples/DIY_OUTDOOR/DIY_OUTDOOR.ino b/examples/DIY_OUTDOOR/DIY_OUTDOOR.ino index 9baa82f..207e729 100644 --- a/examples/DIY_OUTDOOR/DIY_OUTDOOR.ino +++ b/examples/DIY_OUTDOOR/DIY_OUTDOOR.ino @@ -14,7 +14,7 @@ If you have any questions please visit our forum at https://forum.airgradient.co If you are a school or university contact us for a free trial on the AirGradient platform. https://www.airgradient.com/ -License: CC BY-NC 4.0 Attribution-NonCommercial 4.0 International +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ #include "PMS.h" diff --git a/examples/DIY_PRO/DIY_PRO.ino b/examples/DIY_PRO/DIY_PRO.ino index ffa7425..5d0aaf3 100644 --- a/examples/DIY_PRO/DIY_PRO.ino +++ b/examples/DIY_PRO/DIY_PRO.ino @@ -19,7 +19,7 @@ If you have any questions please visit our forum at https://forum.airgradient.co If you are a school or university contact us for a free trial on the AirGradient platform. https://www.airgradient.com/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ diff --git a/examples/DIY_PRO_V3_7/DIY_PRO_V3_7.ino b/examples/DIY_PRO_V3_7/DIY_PRO_V3_7.ino index 99793ae..498d491 100644 --- a/examples/DIY_PRO_V3_7/DIY_PRO_V3_7.ino +++ b/examples/DIY_PRO_V3_7/DIY_PRO_V3_7.ino @@ -23,7 +23,7 @@ If you have any questions please visit our forum at https://forum.airgradient.co If you are a school or university contact us for a free trial on the AirGradient platform. https://www.airgradient.com/ -License: CC BY-NC 4.0 Attribution-NonCommercial 4.0 International +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ @@ -51,15 +51,15 @@ NOxGasIndexAlgorithm nox_algorithm; // time in seconds needed for NOx conditioning uint16_t conditioning_s = 10; -// for persistent saving and loading +// for peristent saving and loading int addr = 0; byte value; // Display bottom right -U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); +//U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R0, /* reset=*/ U8X8_PIN_NONE); // Replace above if you have display on top left -//U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R2, /* reset=*/ U8X8_PIN_NONE); +U8G2_SH1106_128X64_NONAME_F_HW_I2C u8g2(U8G2_R2, /* reset=*/ U8X8_PIN_NONE); // CONFIGURATION START @@ -117,7 +117,6 @@ unsigned long releasedTime = 0; void setup() { Serial.begin(115200); Serial.println("Hello"); - u8g2.setBusClock(100000); u8g2.begin(); //u8g2.setDisplayRotation(U8G2_R0); @@ -233,29 +232,32 @@ void setConfig() { inUSAQI = true; } if (buttonConfig == 4) { - updateOLED2("Temp. in C", "PM in ug/m3", "Display Bottom"); + updateOLED2("Temp. in C", "PM in ug/m3", "Display Top"); u8g2.setDisplayRotation(U8G2_R0); inF = false; inUSAQI = false; } if (buttonConfig == 5) { - updateOLED2("Temp. in C", "PM in US AQI", "Display Bottom"); + updateOLED2("Temp. in C", "PM in US AQI", "Display Top"); u8g2.setDisplayRotation(U8G2_R0); inF = false; inUSAQI = true; } if (buttonConfig == 6) { - updateOLED2("Temp. in F", "PM in ug/m3", "Display Bottom"); + updateOLED2("Temp. in F", "PM in ug/m3", "Display Top"); u8g2.setDisplayRotation(U8G2_R0); inF = true; inUSAQI = false; } if (buttonConfig == 7) { - updateOLED2("Temp. in F", "PM in US AQI", "Display Bottom"); + updateOLED2("Temp. in F", "PM in US AQI", "Display Top"); u8g2.setDisplayRotation(U8G2_R0); inF = true; inUSAQI = true; } + + + // to do // if (buttonConfig == 8) { // updateOLED2("CO2", "Manual", "Calibration"); diff --git a/examples/DIY_PRO_WITH_SGP30/DIY_PRO_WITH_SGP30.ino b/examples/DIY_PRO_WITH_SGP30/DIY_PRO_WITH_SGP30.ino index 7c469e3..733cd4f 100644 --- a/examples/DIY_PRO_WITH_SGP30/DIY_PRO_WITH_SGP30.ino +++ b/examples/DIY_PRO_WITH_SGP30/DIY_PRO_WITH_SGP30.ino @@ -25,7 +25,7 @@ If you have any questions please visit our forum at https://forum.airgradient.co If you are a school or university contact us for a free trial on the AirGradient platform. https://www.airgradient.com/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ diff --git a/examples/DIY_PRO_WITH_SGP40/DIY_PRO_WITH_SGP40.ino b/examples/DIY_PRO_WITH_SGP40/DIY_PRO_WITH_SGP40.ino index 6b60de8..a0a37bf 100644 --- a/examples/DIY_PRO_WITH_SGP40/DIY_PRO_WITH_SGP40.ino +++ b/examples/DIY_PRO_WITH_SGP40/DIY_PRO_WITH_SGP40.ino @@ -20,7 +20,7 @@ If you have any questions please visit our forum at https://forum.airgradient.co If you are a school or university contact us for a free trial on the AirGradient platform. https://www.airgradient.com/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ diff --git a/examples/MINI_DISPLAY/MINI_DISPLAY.ino b/examples/MINI_DISPLAY/MINI_DISPLAY.ino index 130984e..2885879 100644 --- a/examples/MINI_DISPLAY/MINI_DISPLAY.ino +++ b/examples/MINI_DISPLAY/MINI_DISPLAY.ino @@ -21,7 +21,7 @@ If you have any questions please visit our forum at https://forum.airgradient.co If you are a school or university contact us for a free trial on the AirGradient platform. https://www.airgradient.com/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ #include diff --git a/examples/PM2_SIMPLE/PM2_SIMPLE.ino b/examples/PM2_SIMPLE/PM2_SIMPLE.ino index 5a514a1..b88ee58 100644 --- a/examples/PM2_SIMPLE/PM2_SIMPLE.ino +++ b/examples/PM2_SIMPLE/PM2_SIMPLE.ino @@ -17,7 +17,7 @@ https://www.airgradient.com/ Kits with all required components are available at https://www.airgradient.com/open-airgradient/shop/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ #include diff --git a/examples/SHT_SIMPLE/SHT_SIMPLE.ino b/examples/SHT_SIMPLE/SHT_SIMPLE.ino index e5e20e8..13108a6 100644 --- a/examples/SHT_SIMPLE/SHT_SIMPLE.ino +++ b/examples/SHT_SIMPLE/SHT_SIMPLE.ino @@ -17,7 +17,7 @@ Kits with all required components are available at https://www.airgradient.com/o If you have any questions please visit our forum at https://forum.airgradient.com/ -MIT License +CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License */ #include