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
quattro.cpp
- Committer:
- shockey
- Date:
- 2016-02-05
- Revision:
- 0:11b872c2badc
File content as of revision 0:11b872c2badc:
#include "mbed.h" #include "quattro.h" // #include "oled_lcd.h" DigitalOut *led3_org = 0 ; DigitalOut *led4_org = 0 ; DigitalOut *led5_org = 0 ; DigitalOut *led6_org = 0 ; DigitalOut *led7_grn = 0 ; DigitalOut *oled_cs = 0 ; DigitalOut *oled_rs = 0 ; DigitalIn *sw3_r = 0 ; DigitalIn *sw4_g = 0 ; DigitalIn *sw5_b = 0 ; InterruptIn *int3_r = 0 ; InterruptIn *int4_g = 0 ; InterruptIn *int5_b = 0 ; void init_quattro(void) { // oled_cs = new DigitalOut(PIN_OLED_CS, 1) ; // oled_rs = new DigitalOut(PIN_OLED_RS, 1) ; led3_org = new DigitalOut(PTB0, 1) ; led4_org = new DigitalOut(PTB1, 1) ; led5_org = new DigitalOut(PTC5, 1) ; led6_org = new DigitalOut(PTC6, 1) ; led7_grn = new DigitalOut(PTC7, 1) ; /* sw3_r = new DigitalIn(PTC1) ; sw4_g = new DigitalIn(PTC8) ; sw5_b = new DigitalIn(PTC9) ; */ int3_r = new InterruptIn(PTC1) ; int4_g = new InterruptIn(PTC8) ; int5_b = new InterruptIn(PTC9) ; }