summaryrefslogtreecommitdiff
path: root/samples/dashboard_4884
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2015-05-17 23:29:58 +1000
committerStanley Huang <stanleyhuangyc@gmail.com>2015-05-17 23:29:58 +1000
commit06baa20150ece9b45d038234a04ed558ed2effab (patch)
tree08a689727d049ead87b5855adae8c9c5ded3c4f4 /samples/dashboard_4884
parente494891c8cb7a47279d5ce514850fa855e64ab0c (diff)
download2021-arduino-obd-06baa20150ece9b45d038234a04ed558ed2effab.tar.gz
2021-arduino-obd-06baa20150ece9b45d038234a04ed558ed2effab.tar.bz2
2021-arduino-obd-06baa20150ece9b45d038234a04ed558ed2effab.zip
Remove deprecated samples
Diffstat (limited to 'samples/dashboard_4884')
-rw-r--r--samples/dashboard_4884/LCD4884.cpp293
-rw-r--r--samples/dashboard_4884/LCD4884.h67
-rw-r--r--samples/dashboard_4884/dashboard_4884.ino455
-rw-r--r--samples/dashboard_4884/font_6x8.h101
-rw-r--r--samples/dashboard_4884/font_big.h141
5 files changed, 0 insertions, 1057 deletions
diff --git a/samples/dashboard_4884/LCD4884.cpp b/samples/dashboard_4884/LCD4884.cpp
deleted file mode 100644
index 2cf234f..0000000
--- a/samples/dashboard_4884/LCD4884.cpp
+++ /dev/null
@@ -1,293 +0,0 @@
-/*
-Modified by Lauren
-version 0.3
-
-Any suggestions are welcome.
-
-Editors : Lauren from DFRobot <Lauran.pan@gmail.com>
- Stanley Huang <stanleyhuangyc@gmail.com>
-Date : Feb. 11, 2012
-
-* Added LCD_putchar for basic console display
-* Have the back light under control.
-* Update the library and sketch to compatible with IDE V1.0 and earlier
-
-*/
-
-#include "LCD4884.h"
-#include "font_6x8.h"
-#include "font_big.h"
-
-#if defined(ARDUINO) && ARDUINO >= 100
-#include "Arduino.h"
-#else
-#include "WProgram.h"
-#include "WConstants.h"
-#endif
-
-
-extern "C"
-{
-#include <avr/pgmspace.h>
-}
-
-#define NUM_COL 14
-#define NUM_ROW 5
-
-LCD4884::LCD4884():prev_char(0),char_mode(MENU_NORMAL)
-{};
-
-LCD4884 lcd = LCD4884();
-
-void LCD4884::backlight(unsigned char dat)
-{
- if(dat==1)
- digitalWrite(LCD_BL,HIGH);
- else
- digitalWrite(LCD_BL,LOW);
-}
-
-void LCD4884::LCD_init(void)
-{
- for(unsigned char i = 2; i < 8; i++) {
- pinMode(i,OUTPUT);
- digitalWrite(i,LOW);
- }
-
- digitalWrite(LCD_RST,LOW);
- delayMicroseconds(1);
- digitalWrite(LCD_RST,HIGH);
-
- digitalWrite(SPI_CS,LOW);
- delayMicroseconds(1);
- digitalWrite(SPI_CS,HIGH);
- delayMicroseconds(1);
- digitalWrite(LCD_BL,HIGH);
-
- LCD_write_byte(0x21, 0);
- LCD_write_byte(0xc0, 0);
- LCD_write_byte(0x06, 0);
- LCD_write_byte(0x13, 0);
- LCD_write_byte(0x20, 0);
- LCD_clear();
- LCD_write_byte(0x0c, 0);
-
- digitalWrite(SPI_CS,LOW);
-}
-
-void LCD4884::LCD_write_byte(unsigned char dat, unsigned char dat_type)
-{
- digitalWrite(SPI_CS,LOW);
- if (dat_type == 0)
- digitalWrite(LCD_DC,LOW);
- else
- digitalWrite(LCD_DC,HIGH);
-
- for(unsigned char i=0; i<8; i++) {
- if(dat & 0x80) {
- digitalWrite(SPI_MOSI,HIGH);
- } else {
- digitalWrite(SPI_MOSI,LOW);
- }
- digitalWrite(SPI_SCK,LOW);
- dat = dat << 1;
- digitalWrite(SPI_SCK,HIGH);
- }
- digitalWrite(SPI_CS,HIGH);
-}
-
-void LCD4884::LCD_draw_bmp_pixel(unsigned char X,unsigned char Y,unsigned char *map,
- unsigned char Pix_x,unsigned char Pix_y)
-{
- unsigned int i,n;
- unsigned char row;
-
- if (Pix_y%8==0)
- row=Pix_y/8;
- else
- row=Pix_y/8+1;
-
- for (n=0;n<row;n++) {
- LCD_set_XY(X,Y);
- for(i=0; i<Pix_x; i++) {
- LCD_write_byte(map[i+n*Pix_x], 1);
- }
- Y++;
- }
-}
-
-void LCD4884::LCD_write_string(unsigned char X,unsigned char Y,char *s, char mode)
- {
- LCD_set_XY(X,Y);
- while (*s) {
- LCD_write_char(*s, mode);
- s++;
- }
- }
-
-void LCD4884::LCD_write_string(char *s, char mode)
- {
- while (*s) {
- LCD_write_char(*s, mode);
- s++;
- }
- }
-
-void LCD4884::LCD_write_chinese(unsigned char X, unsigned char Y,unsigned char *c,unsigned char ch_with,unsigned char num,unsigned char line,unsigned char row)
-{
- LCD_set_XY(X,Y);
- for (unsigned char i=0;i<num;) {
- for (unsigned char n=0; n<ch_with*2; n++) {
- if (n==ch_with) {
- if (i==0)
- LCD_set_XY(X,Y+1);
- else
- LCD_set_XY((X+(ch_with+row)*i),Y+1);
- }
- LCD_write_byte(c[(i*ch_with*2)+n],1);
- }
- i++;
- LCD_set_XY((X+(ch_with+row)*i),Y);
- }
-}
-
-
-void LCD4884::LCD_write_string_big ( unsigned char X,unsigned char Y, char *string, char mode )
-{
- while ( *string ){
- LCD_write_char_big( X, Y, *string , mode );
- if(*string++ == '.')
- X += 5;
- else
- X += 12;
- }
-}
-
-/* write char in big font */
-void LCD4884::LCD_write_char_big (unsigned char X,unsigned char Y, unsigned char ch, char mode)
-{
- unsigned char i, j;
- unsigned char *pFont;
- unsigned char ch_dat;
-
- pFont = (unsigned char *) big_number;
-
- switch (ch) {
- case '.':
- ch = 10;
- break;
- case '+':
- ch = 11;
- break;
- case '-':
- ch = 12;
- break;
- case ' ':
- for(i=0;i<3;i++) {
- LCD_set_XY ( X, Y+i);
- for(j=0; j<16; j++) {
- LCD_write_byte( (mode == MENU_NORMAL)? 0 : 0xff, 1);
- }
- }
- return;
- break;
- default:
- ch = ch & 0x0f;
- }
-
- for(i=0;i<3;i++) {
- LCD_set_XY ( X, Y+i);
- for(j=0; j<16; j++){
- ch_dat = pgm_read_byte(pFont+ch*48 + i*16 +j);
- LCD_write_byte( (mode == MENU_NORMAL)? ch_dat : (ch_dat^0xff), 1);
- }
- }
-
-
-}
-
-void LCD4884::LCD_write_char(unsigned char c, char mode)
-{
- unsigned char line;
- unsigned char *pFont;
- byte ch;
-
- pFont = (unsigned char *)font6_8;
- c -= 32;
-
- for (line=0; line<6; line++) {
- ch = pgm_read_byte(pFont+c*6+line);
- LCD_write_byte( (mode==MENU_NORMAL)? ch: (ch^ 0xff) , 1);
- }
- x = (x + 1) % NUM_COL;
-}
-
-
-void LCD4884::LCD_set_XY(unsigned char X, unsigned char Y)
- {
- LCD_write_byte(0x40 | Y, 0); // column
- LCD_write_byte(0x80 | X, 0); // row
- x = X;
- }
-
-
-void LCD4884::LCD_clear(void)
- {
- unsigned int i;
-
- LCD_write_byte(0x0c, 0);
- LCD_write_byte(0x80, 0);
-
- for (i=0; i<504; i++)
- LCD_write_byte(0, 1);
-
- x = 0;
- }
-
-void LCD4884::LCD_write_title(char* title)
-{
- LCD_set_XY(0, 0);
- for (char n = 0; n < NUM_COL; n++)
- LCD_write_char(' ', MENU_HIGHLIGHT);
- LCD_write_string((NUM_COL - strlen(title)) * 3, 0, title, MENU_HIGHLIGHT);
- LCD_set_XY(0, 1);
-}
-
-void LCD4884::LCD_putchar(char c)
-{
- if (prev_char == 27) {
- switch (c) {
- case '0':
- LCD_clear();
- break;
- case '1':
- LCD_set_XY(0, 0);
- break;
- case '2':
- char_mode = MENU_NORMAL;
- break;
- case '3':
- char_mode = MENU_HIGHLIGHT;
- break;
- case '4':
- backlight(ON);
- break;
- case '5':
- backlight(OFF);
- break;
- }
- } else {
- switch (c) {
- case '\r':
- for (char n = x; n < NUM_COL; n++) {
- LCD_write_char(' ', char_mode);
- }
- break;
- case '\n':
- break;
- default:
- LCD_write_char(c, char_mode);
- }
- }
- prev_char = c;
-} \ No newline at end of file
diff --git a/samples/dashboard_4884/LCD4884.h b/samples/dashboard_4884/LCD4884.h
deleted file mode 100644
index 3145601..0000000
--- a/samples/dashboard_4884/LCD4884.h
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
-Modified by Lauren
-version 0.3
-
-Any suggestions are welcome.
-
-Editors : Lauren from DFRobot <Lauran.pan@gmail.com>
- Stanley Huang <stanleyhuangyc@gmail.com>
-Date : Feb. 11, 2012
-
-* Added LCD_putchar for basic console display
-* Have the back light under control.
-* Update the library and sketch to compatible with IDE V1.0 and earlier
-
-*/
-
-#ifndef LCD4884_h
-#define LCD4884_h
-
-#if defined(ARDUINO) && ARDUINO >= 100
-#include "Arduino.h"
-#else
-#include "WProgram.h"
-#endif
-
-#define SPI_SCK 2
-#define SPI_MOSI 3
-#define LCD_DC 4
-#define SPI_CS 5
-#define LCD_RST 6
-#define LCD_BL 7
-
-
-//display mode -- normal / highlight
-#define MENU_NORMAL 0
-#define MENU_HIGHLIGHT 1
-#define OFF 0
-#define ON 1
-#define FLAG_TITLE 1
-
-class LCD4884
-{
-public:
- LCD4884();
- void LCD_init(void);
- void backlight(unsigned char dat);
- void LCD_write_byte(unsigned char dat, unsigned char dat_type);
- void LCD_draw_bmp_pixel(unsigned char X,unsigned char Y,unsigned char *map,unsigned char Pix_x,unsigned char Pix_y);
- void LCD_write_string(unsigned char X,unsigned char Y,char *s, char mode = MENU_NORMAL);
- void LCD_write_string(char *s, char mode = MENU_NORMAL);
- void LCD_write_chinese(unsigned char X, unsigned char Y,unsigned char *c,unsigned char ch_with,unsigned char num,unsigned char line,unsigned char row);
- void LCD_write_string_big ( unsigned char X,unsigned char Y, char *string, char mode = MENU_NORMAL);
- void LCD_write_char_big (unsigned char X,unsigned char Y, unsigned char ch, char mode = MENU_NORMAL);
- void LCD_write_char(unsigned char c, char mode = MENU_NORMAL);
- void LCD_set_XY(unsigned char X, unsigned char Y);
- void LCD_clear(void);
- void LCD_write_title(char* title);
- void LCD_putchar(char c);
- unsigned char x;
-private:
- char prev_char;
- char char_mode;
-};
-
-extern LCD4884 lcd;
-
-#endif //
diff --git a/samples/dashboard_4884/dashboard_4884.ino b/samples/dashboard_4884/dashboard_4884.ino
deleted file mode 100644
index ba3aeef..0000000
--- a/samples/dashboard_4884/dashboard_4884.ino
+++ /dev/null
@@ -1,455 +0,0 @@
-/*************************************************************************
-* Sample sketch based on OBD-II library for Arduino
-* Using a LCD4884 shield to display realtime vehicle data
-* Distributed under GPL v2.0
-* Copyright (c) 2012 Stanley Huang <stanleyhuangyc@gmail.com>
-* All rights reserved.
-*************************************************************************/
-
-#include <Arduino.h>
-#include <Wire.h>
-#include <OBD.h>
-#include "LCD4884.h"
-
-//keypad debounce parameter
-#define DEBOUNCE_MAX 15
-#define DEBOUNCE_ON 10
-#define DEBOUNCE_OFF 3
-
-#define NUM_KEYS 5
-#define NUM_MODES 3
-
-// joystick number
-#define LEFT_KEY 0
-#define CENTER_KEY 1
-#define DOWN_KEY 2
-#define RIGHT_KEY 3
-#define UP_KEY 4
-
-int adc_key_val[5] ={
- 50, 200, 400, 600, 800 };
-
-// debounce counters
-byte button_count[NUM_KEYS];
-// button status - pressed/released
-byte button_status[NUM_KEYS];
-// button on flags for user program
-byte button_flag[NUM_KEYS];
-// initial gauge mode
-char mode = 0;
-
-// The followinging are interrupt-driven keypad reading functions
-// which includes DEBOUNCE ON/OFF mechanism, and continuous pressing detection
-
-// Convert ADC value to key number
-char get_key(unsigned int input)
-{
- char k;
-
- for (k = 0; k < NUM_KEYS; k++)
- {
- if (input < adc_key_val[k])
- {
-
- return k;
- }
- }
-
- if (k >= NUM_KEYS)
- k = -1; // No valid key pressed
-
- return k;
-}
-
-void update_adc_key(){
- int adc_key_in;
- char key_in;
- byte i;
-
- adc_key_in = analogRead(0);
- key_in = get_key(adc_key_in);
- for(i=0; i<NUM_KEYS; i++)
- {
- if(key_in==i) //one key is pressed
- {
- if(button_count[i]<DEBOUNCE_MAX)
- {
- button_count[i]++;
- if(button_count[i]>DEBOUNCE_ON)
- {
- if(button_status[i] == 0)
- {
- button_flag[i] = 1;
- button_status[i] = 1; //button debounced to 'pressed' status
- }
-
- }
- }
-
- }
- else // no button pressed
- {
- if (button_count[i] >0)
- {
- button_flag[i] = 0;
- button_count[i]--;
- if(button_count[i]<DEBOUNCE_OFF){
- button_status[i]=0; //button debounced to 'released' status
- }
- }
- }
-
- }
-}
-
-void ShowProgressBarV(byte x, byte y, byte val /* 0~10 */)
-{
- byte j = 10 - val;
- for (char y1 = j >> 1; y1 >= 0; y1--) {
- lcd.LCD_set_XY(x, y1 + y);
- for (byte x = 0; x < 14; x++) {
- lcd.LCD_write_byte(0, 1);
- }
- }
- if (j & 1 == 1) {
- j >>= 1;
- lcd.LCD_set_XY(x, y + j);
- for (byte x = 0; x < 14; x++) {
- lcd.LCD_write_byte(0xE0, 1);
- }
- j++;
- } else {
- j >>= 1;
- }
- for (byte y1 = j; y1 <= 5; y1++) {
- lcd.LCD_set_XY(x, y1 + y);
- for (byte x = 0; x < 14; x++) {
- lcd.LCD_write_byte(0xEE, 1);
- }
- }
-}
-
-byte CheckPressedKey()
-{
- for(int i=0; i<NUM_KEYS; i++){
- if(button_flag[i] !=0){
- button_flag[i]=0; // reset button flag
- return i;
- }
- }
- return -1;
-}
-
-// waiting for center key press
-void waitfor_OKkey(){
- byte i;
- byte key = 0xFF;
- update_adc_key();
- while (key!= CENTER_KEY){
- for(i=0; i<NUM_KEYS; i++){
- if(button_flag[i] !=0){
- button_flag[i]=0; // reset button flag
- if(i== CENTER_KEY) key=CENTER_KEY;
- }
- }
- }
-
-}
-
-class COBDDash : public COBD
-{
-public:
- void Connect()
- {
- int value;
- lcd.LCD_clear();
- lcd.LCD_write_string(0, 0, "Connecting..", MENU_NORMAL);
- for (int n = 0; !init(); n++) {
- lcd.LCD_putchar('.');
- if (n == 3) lcd.backlight(OFF);
- }
-
- lcd.backlight(ON); //Turn on the backlight
- lcd.LCD_clear();
- lcd.LCD_write_string(0, 0, "Connected!", MENU_NORMAL);
- lcd.LCD_write_string(0, 1, "Wait ECU start", MENU_NORMAL);
- do {
- delay(1000);
- } while (!read(PID_RPM, value));
- lcd.LCD_write_string(0, 2, "ECU started ", MENU_NORMAL);
- lcd.LCD_write_string(0, 3, "Wait ignition ", MENU_NORMAL);
- do {
- delay(100);
- } while (!read(PID_RPM, value) || value == 0);
- lcd.LCD_write_string(0, 4, "Engine started", MENU_NORMAL);
- delay(1000);
- }
- void Loop()
- {
- unsigned long lastTime = millis();
-
- Connect();
-
- byte count = 0;
- byte key;
- DisplayBG(mode);
- dataMode = 1;
- lcd.backlight(ON);
- for (;;) {
- update_adc_key();
- key = CheckPressedKey();
- if (key != -1) {
- switch (key) {
- case CENTER_KEY:
- mode = (mode + 1) % NUM_MODES;
- DisplayBG(mode);
- count = 0;
- break;
- case LEFT_KEY:
- if (mode > 0) {
- mode--;
- DisplayBG(mode);
- count = 0;
- }
- break;
- case RIGHT_KEY:
- if (mode < NUM_MODES - 1) {
- mode++;
- DisplayBG(mode);
- count = 0;
- }
- break;
- case UP_KEY:
- lcd.backlight(ON);
- break;
- case DOWN_KEY:
- lcd.backlight(OFF);
- break;
- }
- }
- if (millis() - lastTime < 250) {
- continue;
- }
- lastTime = millis();
-
- switch (mode) {
- case 0:
- DisplayData1();
- break;
- case 1:
- DisplayData2();
- switch (count) {
- case 0:
- DisplayData21();
- break;
- case 5:
- DisplayData22();
- break;
- case 10:
- DisplayData23();
- break;
- }
- break;
- case 2:
- DisplayData3();
- break;
- }
- if (errors > 5) {
- lcd.backlight(OFF);
- return;
- }
- count++;
- }
- }
-private:
- void DisplayData1()
- {
- if (read(PID_RPM, value)) {
- ShowRPM(value);
- }
- if (read(PID_SPEED, value)) {
- ShowSpeed(value);
- }
- if (read(PID_ENGINE_LOAD, value)) {
- ShowEngineLoad(value);
- }
- }
- void DisplayData2()
- {
- if (read(PID_RPM, value)) {
- ShowRPM(value);
- }
- if (read(PID_SPEED, value)) {
- ShowSpeed2(value);
- }
- }
- void DisplayData21()
- {
- if (read(PID_COOLANT_TEMP, value)) {
- ShowTemperature(value, 42, 3);
- }
- }
- void DisplayData22()
- {
- if (read(PID_INTAKE_TEMP, value)) {
- ShowTemperature(value, 42, 4);
- }
- }
- void DisplayData23()
- {
- if (read(PID_AMBIENT_TEMP, value)) {
- ShowTemperature(value, 42, 5);
- }
- }
- void DisplayData3()
- {
- if (read(PID_SPEED, value)) {
- ShowSpeed2(value);
- }
- if (read(PID_INTAKE_MAP, value)) {
- char buf[8];
- sprintf(buf, "%3u", value);
- lcd.LCD_write_string(24, 4, buf, MENU_NORMAL);
- int boost = (value - 101);
- if (boost < 0) boost = 0;
- sprintf(buf, "%d.%02d", boost / 100, boost % 100);
- lcd.LCD_write_string_big(0, 0, buf, MENU_NORMAL);
- }
- if (read(PID_FUEL_PRESSURE, value)) {
- char buf[8];
- sprintf(buf, "%3u", value);
- lcd.LCD_write_string(24, 5, buf, MENU_NORMAL);
- }
- }
- void ShowEngineLoad(uint8_t value)
- {
- ShowProgressBarV(70, 1, value / 10);
- lcd.LCD_write_string(78, 1, "%", MENU_NORMAL);
- }
- void ShowRPM(int value)
- {
- char buf[15];
- if (value <= 9999) {
- sprintf(buf, "%4u", value);
- lcd.LCD_write_string_big(0, 0, buf, MENU_NORMAL);
- lcd.LCD_write_string(48, 2, "R", MENU_NORMAL);
- }
- }
- void ShowSpeed(uint8_t value)
- {
- char buf[8];
- sprintf(buf, "%3u", value);
- lcd.LCD_write_string_big(6, 3, buf, MENU_NORMAL);
- lcd.LCD_write_string(42, 5, "k", MENU_NORMAL);
- }
- void ShowSpeed2(uint8_t value)
- {
- char buf[8];
- ShowProgressBarV(70, 1, value / 25);
- sprintf(buf, "%3u", value);
- lcd.LCD_write_string(66, 0, buf, MENU_NORMAL);
- lcd.LCD_write_string(66, 1, "kph", MENU_NORMAL);
- }
- void ShowTemperature(uint8_t value, byte x, byte y)
- {
- char buf[8];
- sprintf(buf, "%3d", value);
- lcd.LCD_write_string(x, y, buf, MENU_NORMAL);
- }
- void DisplayBG(char mode)
- {
- lcd.LCD_clear();
- switch (mode) {
- case 0:
- lcd.LCD_write_string(48, 2, "RPM", MENU_NORMAL);
- lcd.LCD_write_string(42, 5, "kph", MENU_NORMAL);
- lcd.LCD_write_string(66, 0, "ENG", MENU_NORMAL);
- break;
- case 1:
- lcd.LCD_write_string(48, 2, "RPM", MENU_NORMAL);
- lcd.LCD_write_string(0, 3, "COOLANT C", MENU_NORMAL);
- lcd.LCD_write_string(0, 4, "INTAKE C", MENU_NORMAL);
- lcd.LCD_write_string(0, 5, "AMBIENT C", MENU_NORMAL);
- break;
- case 2:
- lcd.LCD_write_string(48, 2, "bar", MENU_NORMAL);
- lcd.LCD_write_string(0, 3, "PRESSURES", MENU_NORMAL);
- lcd.LCD_write_string(0, 4, "AIR kpa", MENU_NORMAL);
- lcd.LCD_write_string(0, 5, "FUEL kpa", MENU_NORMAL);
- break;
- }
- }
-#ifdef USE_SOFTSERIAL
- // override data communication functions
- bool DataAvailable() { return mySerial.available(); }
- char ReadData()
- {
- char c = mySerial.read();
- Serial.write(c);
- return c;
- }
- void WriteData(const char* s) { mySerial.write(s); }
- void WriteData(const char c) { mySerial.write(c); }
-#endif
- char displayMode;
- int value;
-};
-
-COBDDash obd;
-
-void loop()
-{
- obd.Loop();
-}
-
-void setup()
-{
-
- // setup interrupt-driven keypad arrays
- // reset button arrays
- for(byte i=0; i<NUM_KEYS; i++){
- button_count[i]=0;
- button_status[i]=0;
- button_flag[i]=0;
- }
-
-#ifdef __AVR_ATmega32U4__
- // Setup timer2 -- Prescaler/256
- TCCR2A &= ~((1<<WGM21) | (1<<WGM20));
- TCCR2B &= ~(1<<WGM22);
- TCCR2B = (1<<CS22)|(1<<CS21);
-
- ASSR |=(0<<AS2);
-
- // Use normal mode
- TCCR2A =0;
- //Timer2 Overflow Interrupt Enable
- TIMSK2 |= (0<<OCIE2A);
- TCNT2=0x6; // counting starts from 6;
- TIMSK2 = (1<<TOIE2);
-
- SREG|=1<<SREG_I;
-#endif
-
- lcd.LCD_init();
- lcd.LCD_clear();
-
- lcd.backlight(ON); // Turn on the backlight
-
- pinMode(13, OUTPUT);
-
- obd.begin();
-}
-
-// Timer2 interrupt routine -
-// 1/(160000000/256/(256-6)) = 4ms interval
-
-#ifdef __AVR_ATmega32U4__
-
-ISR(TIMER2_OVF_vect) {
- TCNT2 = 6;
- update_adc_key();
-}
-
-#endif
-
diff --git a/samples/dashboard_4884/font_6x8.h b/samples/dashboard_4884/font_6x8.h
deleted file mode 100644
index cc5855f..0000000
--- a/samples/dashboard_4884/font_6x8.h
+++ /dev/null
@@ -1,101 +0,0 @@
-// 6 x 8 font
-// 1 pixel space at left and bottom
-// index = ASCII - 32
-#include <avr/pgmspace.h>
-
-unsigned char font6_8[][6] PROGMEM =
-{
- { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, // sp
- { 0x00, 0x00, 0x00, 0x2f, 0x00, 0x00 }, // !
- { 0x00, 0x00, 0x07, 0x00, 0x07, 0x00 }, // "
- { 0x00, 0x14, 0x7f, 0x14, 0x7f, 0x14 }, // #
- { 0x00, 0x24, 0x2a, 0x7f, 0x2a, 0x12 }, // $
- { 0x00, 0x62, 0x64, 0x08, 0x13, 0x23 }, // %
- { 0x00, 0x36, 0x49, 0x55, 0x22, 0x50 }, // &
- { 0x00, 0x00, 0x05, 0x03, 0x00, 0x00 }, // '
- { 0x00, 0x00, 0x1c, 0x22, 0x41, 0x00 }, // (
- { 0x00, 0x00, 0x41, 0x22, 0x1c, 0x00 }, // )
- { 0x00, 0x14, 0x08, 0x3E, 0x08, 0x14 }, // *
- { 0x00, 0x08, 0x08, 0x3E, 0x08, 0x08 }, // +
- { 0x00, 0x00, 0x00, 0xA0, 0x60, 0x00 }, // ,
- { 0x00, 0x08, 0x08, 0x08, 0x08, 0x08 }, // -
- { 0x00, 0x00, 0x60, 0x60, 0x00, 0x00 }, // .
- { 0x00, 0x20, 0x10, 0x08, 0x04, 0x02 }, // /
- { 0x00, 0x3E, 0x51, 0x49, 0x45, 0x3E }, // 0
- { 0x00, 0x00, 0x42, 0x7F, 0x40, 0x00 }, // 1
- { 0x00, 0x42, 0x61, 0x51, 0x49, 0x46 }, // 2
- { 0x00, 0x21, 0x41, 0x45, 0x4B, 0x31 }, // 3
- { 0x00, 0x18, 0x14, 0x12, 0x7F, 0x10 }, // 4
- { 0x00, 0x27, 0x45, 0x45, 0x45, 0x39 }, // 5
- { 0x00, 0x3C, 0x4A, 0x49, 0x49, 0x30 }, // 6
- { 0x00, 0x01, 0x71, 0x09, 0x05, 0x03 }, // 7
- { 0x00, 0x36, 0x49, 0x49, 0x49, 0x36 }, // 8
- { 0x00, 0x06, 0x49, 0x49, 0x29, 0x1E }, // 9
- { 0x00, 0x00, 0x36, 0x36, 0x00, 0x00 }, // :
- { 0x00, 0x00, 0x56, 0x36, 0x00, 0x00 }, // ;
- { 0x00, 0x08, 0x14, 0x22, 0x41, 0x00 }, // <
- { 0x00, 0x14, 0x14, 0x14, 0x14, 0x14 }, // =
- { 0x00, 0x00, 0x41, 0x22, 0x14, 0x08 }, // >
- { 0x00, 0x02, 0x01, 0x51, 0x09, 0x06 }, // ?
- { 0x00, 0x32, 0x49, 0x59, 0x51, 0x3E }, // @
- { 0x00, 0x7C, 0x12, 0x11, 0x12, 0x7C }, // A
- { 0x00, 0x7F, 0x49, 0x49, 0x49, 0x36 }, // B
- { 0x00, 0x3E, 0x41, 0x41, 0x41, 0x22 }, // C
- { 0x00, 0x7F, 0x41, 0x41, 0x22, 0x1C }, // D
- { 0x00, 0x7F, 0x49, 0x49, 0x49, 0x41 }, // E
- { 0x00, 0x7F, 0x09, 0x09, 0x09, 0x01 }, // F
- { 0x00, 0x3E, 0x41, 0x49, 0x49, 0x7A }, // G
- { 0x00, 0x7F, 0x08, 0x08, 0x08, 0x7F }, // H
- { 0x00, 0x00, 0x41, 0x7F, 0x41, 0x00 }, // I
- { 0x00, 0x20, 0x40, 0x41, 0x3F, 0x01 }, // J
- { 0x00, 0x7F, 0x08, 0x14, 0x22, 0x41 }, // K
- { 0x00, 0x7F, 0x40, 0x40, 0x40, 0x40 }, // L
- { 0x00, 0x7F, 0x02, 0x0C, 0x02, 0x7F }, // M
- { 0x00, 0x7F, 0x04, 0x08, 0x10, 0x7F }, // N
- { 0x00, 0x3E, 0x41, 0x41, 0x41, 0x3E }, // O
- { 0x00, 0x7F, 0x09, 0x09, 0x09, 0x06 }, // P
- { 0x00, 0x3E, 0x41, 0x51, 0x21, 0x5E }, // Q
- { 0x00, 0x7F, 0x09, 0x19, 0x29, 0x46 }, // R
- { 0x00, 0x46, 0x49, 0x49, 0x49, 0x31 }, // S
- { 0x00, 0x01, 0x01, 0x7F, 0x01, 0x01 }, // T
- { 0x00, 0x3F, 0x40, 0x40, 0x40, 0x3F }, // U
- { 0x00, 0x1F, 0x20, 0x40, 0x20, 0x1F }, // V
- { 0x00, 0x3F, 0x40, 0x38, 0x40, 0x3F }, // W
- { 0x00, 0x63, 0x14, 0x08, 0x14, 0x63 }, // X
- { 0x00, 0x07, 0x08, 0x70, 0x08, 0x07 }, // Y
- { 0x00, 0x61, 0x51, 0x49, 0x45, 0x43 }, // Z
- { 0x00, 0x00, 0x7F, 0x41, 0x41, 0x00 }, // [
- { 0x00, 0x55, 0x2A, 0x55, 0x2A, 0x55 }, // 55
- { 0x00, 0x00, 0x41, 0x41, 0x7F, 0x00 }, // ]
- { 0x00, 0x04, 0x02, 0x01, 0x02, 0x04 }, // ^
- { 0x00, 0x40, 0x40, 0x40, 0x40, 0x40 }, // _
- { 0x00, 0x00, 0x01, 0x02, 0x04, 0x00 }, // '
- { 0x00, 0x20, 0x54, 0x54, 0x54, 0x78 }, // a
- { 0x00, 0x7F, 0x48, 0x44, 0x44, 0x38 }, // b
- { 0x00, 0x38, 0x44, 0x44, 0x44, 0x20 }, // c
- { 0x00, 0x38, 0x44, 0x44, 0x48, 0x7F }, // d
- { 0x00, 0x38, 0x54, 0x54, 0x54, 0x18 }, // e
- { 0x00, 0x08, 0x7E, 0x09, 0x01, 0x02 }, // f
- { 0x00, 0x18, 0xA4, 0xA4, 0xA4, 0x7C }, // g
- { 0x00, 0x7F, 0x08, 0x04, 0x04, 0x78 }, // h
- { 0x00, 0x00, 0x44, 0x7D, 0x40, 0x00 }, // i
- { 0x00, 0x40, 0x80, 0x84, 0x7D, 0x00 }, // j
- { 0x00, 0x7F, 0x10, 0x28, 0x44, 0x00 }, // k
- { 0x00, 0x00, 0x41, 0x7F, 0x40, 0x00 }, // l
- { 0x00, 0x7C, 0x04, 0x18, 0x04, 0x78 }, // m
- { 0x00, 0x7C, 0x08, 0x04, 0x04, 0x78 }, // n
- { 0x00, 0x38, 0x44, 0x44, 0x44, 0x38 }, // o
- { 0x00, 0xFC, 0x24, 0x24, 0x24, 0x18 }, // p
- { 0x00, 0x18, 0x24, 0x24, 0x18, 0xFC }, // q
- { 0x00, 0x7C, 0x08, 0x04, 0x04, 0x08 }, // r
- { 0x00, 0x48, 0x54, 0x54, 0x54, 0x20 }, // s
- { 0x00, 0x04, 0x3F, 0x44, 0x40, 0x20 }, // t
- { 0x00, 0x3C, 0x40, 0x40, 0x20, 0x7C }, // u
- { 0x00, 0x1C, 0x20, 0x40, 0x20, 0x1C }, // v
- { 0x00, 0x3C, 0x40, 0x30, 0x40, 0x3C }, // w
- { 0x00, 0x44, 0x28, 0x10, 0x28, 0x44 }, // x
- { 0x00, 0x1C, 0xA0, 0xA0, 0xA0, 0x7C }, // y
- { 0x00, 0x44, 0x64, 0x54, 0x4C, 0x44 }, // z
- { 0x00,0x00, 0x06, 0x09, 0x09, 0x06 } // horiz lines
-};
-
diff --git a/samples/dashboard_4884/font_big.h b/samples/dashboard_4884/font_big.h
deleted file mode 100644
index 099a69b..0000000
--- a/samples/dashboard_4884/font_big.h
+++ /dev/null
@@ -1,141 +0,0 @@
-// big font
-#include <avr/pgmspace.h>
-
-
-
-//******* VERY LARGE FONTS **********
-//used here for displaying temperature
-
-unsigned char big_number[13][3][16] PROGMEM = {
-
-0,128,192,224,224,96,224,224, //'0'
-192,128,0,0,0,0,0,0
-,
-112,255,255,1,0,0,0,0,
-255,255,254,0,0,0,0,0
-,
-0,15,31,60,56,48,56,56,
-31,15,3,0,0,0,0,0
-,
-
-0,0,0,0,128,224,224,0, //'1'
-0,0,0,0,0,0,0,0
-,
-0,0,3,3,3,255,255,0,
-0,0,0,0,0,0,0,0
-,
-0,0,56,56,56,63,63,56,
-56,56,0,0,0,0,0,0
-,
-
-0,192,192,224,96,96,224,224, //'2'
-192,128,0,0,0,0,0,0
-,
-0,1,0,0,128,192,224,249,
-63,31,0,0,0,0,0,0
-,
-0,60,62,63,63,59,57,56,
-56,56,56,0,0,0,0,0
-,
-
-0,192,224,224,96,96,224,224, //'3'
-192,192,0,0,0,0,0,0
-,
-0,1,0,0,48,48,56,125,
-239,207,0,0,0,0,0,0
-,
-0,28,56,56,48,48,56,60,
-31,15,1,0,0,0,0,0
-,
-
-0,0,0,0,0,128,192,224, //'4'
-224,0,0,0,0,0,0,0
-,
-224,240,248,222,207,199,193,255,
-255,192,192,0,0,0,0,0
-,
-0,0,0,0,0,0,0,63,
-63,0,0,0,0,0,0,0
-,
-
-0,224,224,224,224,224,224,224, //'5'
-224,224,224,0,0,0,0,0
-,
-0,63,63,63,56,56,48,112,
-240,224,0,0,0,0,0,0
-,
-0,28,56,56,48,48,56,60,
-31,15,1,0,0,0,0,0
-,
-
-0,0,128,192,192,224,96,96, //'6'
-224,224,0,0,0,0,0,0
-,
-224,254,255,55,57,24,24,56,
-240,240,192,0,0,0,0,0
-,
-0,15,31,28,56,48,48,56,
-31,15,7,0,0,0,0,0
-,
-
-0,224,224,224,224,224,224,224, //'7'
-224,224,224,0,0,0,0,0
-,
-0,0,0,0,128,224,248,126,
-31,7,1,0,0,0,0,0
-,
-0,0,56,62,31,7,1,0,
-0,0,0,0,0,0,0,0
-,
-
-0,128,192,224,224,96,96,224, //'8'
-192,192,0,0,0,0,0,0
-,
-0,207,255,127,56,48,112,112,
-255,239,199,0,0,0,0,0
-,
-3,15,31,60,56,48,48,56,
-31,31,15,0,0,0,0,0
-,
-
-0,128,192,224,224,96,224,224, //'9'
-192,128,0,0,0,0,0,0
-,
-12,63,127,241,224,192,192,225,
-255,255,254,0,0,0,0,0
-,
-0,0,56,48,48,56,56,30,
-15,7,0,0,0,0,0,0
-,
-
-
-0,0,0,0,0,0,0,0, //'.'
-0,0,0,0,0,0,0,0
-,
-0,0,0,0,0,0,0,0,
-0,0,0,0,0,0,0,0
-,
-60,60,60,0,0,0,0,0,
-0,0,0,0,0,0,0,0
-,
-
-0,0,0,0,0,0,0,0, //'+'
-0,0,0,0,0,0,0,0
-,
-0,0,64,64,64,64,64,254,
-254,64,64,64,64,64,0,0
-,
-0,0,0,0,0,0,0,15,
-15,0,0,0,0,0,0,0
-,
-
-0,0,0,0,0,0,0,0, //'-'
-0,0,0,0,0,0,0,0
-,
-0,64,64,64,64,64,64,0,
-0,0,0,0,0,0,0,0
-,
-0,0,0,0,0,0,0,0,
-0,0,0,0,0,0,0,0
-};
-