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: BLE_API mbed nRF51822
MicrobitHw.cpp
00001 #include "mbed.h" 00002 #include "MicrobitHw.h" 00003 00004 static BusOut HwLedMatrixRows(ROW1, ROW2, ROW3); 00005 static BusOut HwLedMatrixCols(COL1, COL2, COL3, COL4, COL5, COL6, COL7, COL8, COL9); 00006 00007 void MicrobitHwInitialize() 00008 { 00009 HwLedMatrixRows.write(0); 00010 HwLedMatrixCols.write(0); 00011 } 00012 00013 void MicrobitHwLedMatrix(int rows, int colValues) 00014 { 00015 HwLedMatrixRows.write(0); 00016 HwLedMatrixCols.write(~colValues); 00017 HwLedMatrixRows.write(1 << rows); 00018 }
Generated on Tue Jul 12 2022 15:14:05 by
1.7.2