Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TFT_fonts UniGraphic VEML6075 mbed vt100
Fork of quattro_vishay_6075 by
quattro.cpp
00001 #include "mbed.h" 00002 #include "quattro.h" 00003 // #include "oled_lcd.h" 00004 00005 DigitalOut *led3_org = 0 ; 00006 DigitalOut *led4_org = 0 ; 00007 DigitalOut *led5_org = 0 ; 00008 DigitalOut *led6_org = 0 ; 00009 DigitalOut *led7_grn = 0 ; 00010 DigitalOut *oled_cs = 0 ; 00011 DigitalOut *oled_rs = 0 ; 00012 00013 DigitalIn *sw3_r = 0 ; 00014 DigitalIn *sw4_g = 0 ; 00015 DigitalIn *sw5_b = 0 ; 00016 00017 InterruptIn *int3_r = 0 ; 00018 InterruptIn *int4_g = 0 ; 00019 InterruptIn *int5_b = 0 ; 00020 00021 void init_quattro(void) 00022 { 00023 // oled_cs = new DigitalOut(PIN_OLED_CS, 1) ; 00024 // oled_rs = new DigitalOut(PIN_OLED_RS, 1) ; 00025 00026 led3_org = new DigitalOut(PTB0, 1) ; 00027 led4_org = new DigitalOut(PTB1, 1) ; 00028 led5_org = new DigitalOut(PTC5, 1) ; 00029 led6_org = new DigitalOut(PTC6, 1) ; 00030 led7_grn = new DigitalOut(PTC7, 1) ; 00031 /* 00032 sw3_r = new DigitalIn(PTC1) ; 00033 sw4_g = new DigitalIn(PTC8) ; 00034 sw5_b = new DigitalIn(PTC9) ; 00035 */ 00036 int3_r = new InterruptIn(PTC1) ; 00037 int4_g = new InterruptIn(PTC8) ; 00038 int5_b = new InterruptIn(PTC9) ; 00039 }
Generated on Thu Jul 14 2022 11:03:37 by
1.7.2
