Strength of Irradiance and the UV Index chart page added

Dependencies:   TFT_fonts UniGraphic VEML6075 mbed vt100

Fork of quattro_vishay_6075 by quattro_dev

This is a forked version of quattro_vishay_6075.
An additional Strength of Irradiance and the UV Index page added.

NOTE: Please update the VEML6075.lib before compile.

/media/uploads/Rhyme/img_2118.jpg

Committer:
Rhyme
Date:
Wed Oct 18 05:19:39 2017 +0000
Revision:
1:6b82f17ff8e0
Parent:
0:11b872c2badc
Strength of Irradiance and the UV Index page added

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shockey 0:11b872c2badc 1 #include "mbed.h"
shockey 0:11b872c2badc 2 #include "quattro.h"
shockey 0:11b872c2badc 3 // #include "oled_lcd.h"
shockey 0:11b872c2badc 4
shockey 0:11b872c2badc 5 DigitalOut *led3_org = 0 ;
shockey 0:11b872c2badc 6 DigitalOut *led4_org = 0 ;
shockey 0:11b872c2badc 7 DigitalOut *led5_org = 0 ;
shockey 0:11b872c2badc 8 DigitalOut *led6_org = 0 ;
shockey 0:11b872c2badc 9 DigitalOut *led7_grn = 0 ;
shockey 0:11b872c2badc 10 DigitalOut *oled_cs = 0 ;
shockey 0:11b872c2badc 11 DigitalOut *oled_rs = 0 ;
shockey 0:11b872c2badc 12
shockey 0:11b872c2badc 13 DigitalIn *sw3_r = 0 ;
shockey 0:11b872c2badc 14 DigitalIn *sw4_g = 0 ;
shockey 0:11b872c2badc 15 DigitalIn *sw5_b = 0 ;
shockey 0:11b872c2badc 16
shockey 0:11b872c2badc 17 InterruptIn *int3_r = 0 ;
shockey 0:11b872c2badc 18 InterruptIn *int4_g = 0 ;
shockey 0:11b872c2badc 19 InterruptIn *int5_b = 0 ;
shockey 0:11b872c2badc 20
shockey 0:11b872c2badc 21 void init_quattro(void)
shockey 0:11b872c2badc 22 {
shockey 0:11b872c2badc 23 // oled_cs = new DigitalOut(PIN_OLED_CS, 1) ;
shockey 0:11b872c2badc 24 // oled_rs = new DigitalOut(PIN_OLED_RS, 1) ;
shockey 0:11b872c2badc 25
shockey 0:11b872c2badc 26 led3_org = new DigitalOut(PTB0, 1) ;
shockey 0:11b872c2badc 27 led4_org = new DigitalOut(PTB1, 1) ;
shockey 0:11b872c2badc 28 led5_org = new DigitalOut(PTC5, 1) ;
shockey 0:11b872c2badc 29 led6_org = new DigitalOut(PTC6, 1) ;
shockey 0:11b872c2badc 30 led7_grn = new DigitalOut(PTC7, 1) ;
shockey 0:11b872c2badc 31 /*
shockey 0:11b872c2badc 32 sw3_r = new DigitalIn(PTC1) ;
shockey 0:11b872c2badc 33 sw4_g = new DigitalIn(PTC8) ;
shockey 0:11b872c2badc 34 sw5_b = new DigitalIn(PTC9) ;
shockey 0:11b872c2badc 35 */
shockey 0:11b872c2badc 36 int3_r = new InterruptIn(PTC1) ;
shockey 0:11b872c2badc 37 int4_g = new InterruptIn(PTC8) ;
shockey 0:11b872c2badc 38 int5_b = new InterruptIn(PTC9) ;
shockey 0:11b872c2badc 39 }