tim003 tim003
/
LukaIElmir
Luka Elmir
main.cpp@3:43648fa57d55, 2014-05-26 (annotated)
- Committer:
- tim003
- Date:
- Mon May 26 15:07:13 2014 +0000
- Revision:
- 3:43648fa57d55
- Parent:
- 2:e4d483d82cd8
- Child:
- 4:ba24ce878e87
17:06
Who changed what in which revision?
User | Revision | Line number | New 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 | class Par{ |
tim003 | 0:63f93da46011 | 5 | |
tim003 | 2:e4d483d82cd8 | 6 | }; |
tim003 | 2:e4d483d82cd8 | 7 | class Mapa{ |
tim003 | 1:8186a841911c | 8 | |
tim003 | 2:e4d483d82cd8 | 9 | }; |
tim003 | 0:63f93da46011 | 10 | |
tim003 | 2:e4d483d82cd8 | 11 | #include "MatrixSPI.h" |
tim003 | 0:63f93da46011 | 12 | |
tim003 | 2:e4d483d82cd8 | 13 | MatrixSPI mspi; |
tim003 | 0:63f93da46011 | 14 | |
tim003 | 2:e4d483d82cd8 | 15 | /*void funkcija(){ |
tim003 | 1:8186a841911c | 16 | int temp = pot*16; |
tim003 | 1:8186a841911c | 17 | load = LOW; |
tim003 | 1:8186a841911c | 18 | max72_spi.write(max7219_reg_intensity); |
tim003 | 1:8186a841911c | 19 | max72_spi.write(temp); |
tim003 | 1:8186a841911c | 20 | load = HIGH; |
tim003 | 2:e4d483d82cd8 | 21 | }*/ |
tim003 | 2:e4d483d82cd8 | 22 | |
tim003 | 3:43648fa57d55 | 23 | DotMatrix d; |
tim003 | 0:63f93da46011 | 24 | int main() { |
tim003 | 3:43648fa57d55 | 25 | d.setIntensity(0.1); |
tim003 | 3:43648fa57d55 | 26 | d.setSpeed_ms(1000); |
tim003 | 3:43648fa57d55 | 27 | |
tim003 | 3:43648fa57d55 | 28 | d.PromijeniRecenicu("luka je bio ovdje"); |
tim003 | 2:e4d483d82cd8 | 29 | //enable = 1; |
tim003 | 2:e4d483d82cd8 | 30 | mspi.setup(); |
tim003 | 2:e4d483d82cd8 | 31 | /*t.attach(&funkcija, 0.01); |
tim003 | 0:63f93da46011 | 32 | setup (); |
tim003 | 1:8186a841911c | 33 | while(1){ |
tim003 | 0:63f93da46011 | 34 | loop (); |
tim003 | 2:e4d483d82cd8 | 35 | }*/ |
tim003 | 0:63f93da46011 | 36 | } |
tim003 | 0:63f93da46011 | 37 | |
tim003 | 0:63f93da46011 | 38 | |
tim003 | 0:63f93da46011 | 39 | |
tim003 | 0:63f93da46011 | 40 |