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: mbed
Revision 2:d714fd7bb7d5, committed 2017-12-11
- Comitter:
- sotter
- Date:
- Mon Dec 11 12:35:12 2017 +0000
- Parent:
- 1:be91a16b48ea
- Commit message:
- sota sota
Changed in this revision
| ColorMbed.cpp | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/ColorMbed.cpp Mon Dec 11 09:40:35 2017 +0000
+++ b/ColorMbed.cpp Mon Dec 11 12:35:12 2017 +0000
@@ -84,7 +84,7 @@
lat = 1;
lat = 0;
open_line = line[j];
- wait(0.0001);
+ wait(0.00005);
open_line = 0;
}
}
--- a/main.cpp Mon Dec 11 09:40:35 2017 +0000
+++ b/main.cpp Mon Dec 11 12:35:12 2017 +0000
@@ -8,11 +8,11 @@
Serial pc(D1, D0);
DigitalIn sw(USER_BUTTON);
-uint8_t blue[3] = {0,10,0};
+uint8_t blue[3] = {0,5,0};
uint8_t green[3] = {0,255,0};
uint8_t red[3] = {0,0,255};
-uint8_t M[3] = {255,255,255};
-uint8_t I[3] = {255,0,0};
+uint8_t M[3] = {0,50,100};
+uint8_t I[3] = {100,0,0};
uint8_t map_led[8] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF};
uint8_t boss_led[8] = {0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
uint8_t hero_led[8] = {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
@@ -748,6 +748,7 @@
dotmatrix.display_pic(I_led,I);
if (sw==0){
+
hero_led[position_y] = 0x00;
random();
map();