mirror of
https://github.com/brmlab/edubrm.git
synced 2025-06-08 04:43:59 +02:00
init switches
This commit is contained in:
parent
20c0a5feee
commit
1e2e2587bb
2 changed files with 2 additions and 1 deletions
|
@ -119,6 +119,7 @@ void PinInit() {
|
|||
LPC_IOCON->PIO3_1 |= 0x00;
|
||||
LPC_GPIO2->DIR |= (1<<8) | (1<<9) | (1<<10) | (1<<11);
|
||||
LPC_GPIO3->DIR |= (1<<0) | (1<<1);
|
||||
SwitchesState(0);
|
||||
|
||||
//set chip select pins function
|
||||
LPC_IOCON->PIO0_2 &= ~0x07; // DDS
|
||||
|
|
|
@ -29,7 +29,7 @@ class ModuleDebugWidget(QWidget):
|
|||
# real device:
|
||||
self.dev = Device()
|
||||
# fake device:
|
||||
# self.dev = Device(True)
|
||||
# self.dev = Device(True)
|
||||
|
||||
self.timer = QTimer()
|
||||
QObject.connect(self.timer, SIGNAL("timeout()"), self.read_inputs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue