filmov
tv
Traffic light and 2 one way streets
Показать описание
Components:
3 LEDs (2-red, 2-yellow, 2-green)
470 ohm resistors (3x)
Tiva C Series LaunchPad (TM4C123GXL)
Software: written in C with the Keil uVision IDE - written in Windows 10 Virtual Machine on a MacBook Pro
// sets 6 bits on PORTB
// NORTH : PB2-PB0
// EAST: PB5-PB3
#define LIGHT (*((volatile unsigned long *)0x400050FC))
3 LEDs (2-red, 2-yellow, 2-green)
470 ohm resistors (3x)
Tiva C Series LaunchPad (TM4C123GXL)
Software: written in C with the Keil uVision IDE - written in Windows 10 Virtual Machine on a MacBook Pro
// sets 6 bits on PORTB
// NORTH : PB2-PB0
// EAST: PB5-PB3
#define LIGHT (*((volatile unsigned long *)0x400050FC))