![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
progamme experience
Dependencies: mbed RGB_matrix_Panel_modif
main.cpp
- Committer:
- Mindgyver
- Date:
- 2019-05-24
- Revision:
- 0:8458926c8bd8
- Child:
- 1:159b56e19e44
File content as of revision 0:8458926c8bd8:
#include "mbed.h" #include "RGBmatrixPanel.h" // Hardware-specific library /* //RGBmatrixPanel(r1, g1, b1, r2, g2, b2, a, b, c, sclk, latch, oe, enable double_buffer); //Config NXP1768 16x32 PinName ub1=p8; PinName ug1=p7; PinName ur1=p6; PinName lb2=p11; PinName lg2=p10; PinName lr2=p9; RGBmatrixPanel matrix(ur1,ug1,ub1,lr2,lg2,lb2,p12,p19,p20,p16,p17,p18,false); DigitalOut d(p15,0); */ //RGBmatrixPanel(r1, g1, b1, r2, g2, b2, a, b, c, d, sclk, latch, oe, enable double_buffer); //Config NXP1768 32x32 PinName ub1=p8; PinName ug1=p7; PinName ur1=p6; PinName lb2=p11; PinName lg2=p10; PinName lr2=p9; RGBmatrixPanel matrix(ur1,ug1,ub1,lr2,lg2,lb2,p12,p19,p20,p15,p16,p17,p18,false); /* //Config ST F303K8 PinName ur1=D2; PinName ug1=D3; PinName ub1=D4; PinName lr2=D5; PinName lg2=D6; PinName lb2=D7; RGBmatrixPanel matrix(ur1,ug1,ub1,lb2,lg2,lr2,A0,A1,A2,D8,A3,D9,false); */ Serial BT(p13,p14,115200); // Depart Bluetooth int main() { wait(5); matrix.begin(); for (int i =0; i<3; i++) { // Clignotement panneau matrix.fillScreen(matrix.Color333(0, 0, 0)); wait_ms(500); matrix.fillScreen(matrix.Color333(7, 0, 0)); wait_ms(500); } BT.printf("D"); while(1) { for (int j =0; j<=7; j++) { // Clignotement panneau for (int k=0; k<=7; k++) { for (int l =0; l<=7; l++) { matrix.fillScreen(matrix.Color333(j, k, l)); wait_ms(500); } } } } }