Add board-io, replace sevenseg in sw

This commit is contained in:
Byron Lathi
2022-03-18 01:27:55 +00:00
parent 63b942e29a
commit 5c32fe808e
10 changed files with 89 additions and 8 deletions

View File

@@ -1,11 +1,12 @@
#include <stdint.h>
#include <conio.h>
#include "sevenseg.h"
#include "board_io.h"
#include "uart.h"
int main() {
int i;
uint8_t sw;
char s[16];
s[15] = 0;
@@ -13,6 +14,10 @@ int main() {
cprintf("Hello, world!\n");
while (1) {
sw = sw_read();
led_set(sw);
cscanf("%15s", s);
cprintf("\n");
for (i = 0; i < 16; i++)