Luka Elmir

Dependencies:   mbed

Committer:
tim003
Date:
Mon May 26 17:39:37 2014 +0000
Revision:
4:ba24ce878e87
Parent:
3:43648fa57d55
Child:
5:654e3398c1ef
Verzija koja radi;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
tim003 0:63f93da46011 1 #include "mbed.h"
tim003 3:43648fa57d55 2 #include "DotMatrix.h"
tim003 0:63f93da46011 3
tim003 2:e4d483d82cd8 4 #include "MatrixSPI.h"
tim003 0:63f93da46011 5
tim003 2:e4d483d82cd8 6 MatrixSPI mspi;
tim003 0:63f93da46011 7
tim003 2:e4d483d82cd8 8 /*void funkcija(){
tim003 1:8186a841911c 9 int temp = pot*16;
tim003 1:8186a841911c 10 load = LOW;
tim003 1:8186a841911c 11 max72_spi.write(max7219_reg_intensity);
tim003 1:8186a841911c 12 max72_spi.write(temp);
tim003 1:8186a841911c 13 load = HIGH;
tim003 2:e4d483d82cd8 14 }*/
tim003 2:e4d483d82cd8 15
tim003 3:43648fa57d55 16 DotMatrix d;
tim003 0:63f93da46011 17 int main() {
tim003 4:ba24ce878e87 18
tim003 4:ba24ce878e87 19 d.buffer[0] = 0x1f;
tim003 4:ba24ce878e87 20 d.buffer[1] = 0x15;
tim003 4:ba24ce878e87 21 d.buffer[2] = 0x15;
tim003 4:ba24ce878e87 22 d.buffer[3] = 0x11;
tim003 4:ba24ce878e87 23 d.buffer[4] = 0x0f;
tim003 4:ba24ce878e87 24 d.buffer[5] = 0x03;
tim003 4:ba24ce878e87 25
tim003 4:ba24ce878e87 26 d.refresh();
tim003 2:e4d483d82cd8 27 //enable = 1;
tim003 2:e4d483d82cd8 28 /*t.attach(&funkcija, 0.01);
tim003 0:63f93da46011 29 setup ();
tim003 1:8186a841911c 30 while(1){
tim003 0:63f93da46011 31 loop ();
tim003 2:e4d483d82cd8 32 }*/
tim003 0:63f93da46011 33 }
tim003 0:63f93da46011 34
tim003 0:63f93da46011 35
tim003 0:63f93da46011 36
tim003 0:63f93da46011 37