SEARCH
TOOLBOX
LANGUAGES
modified on 17 September 2014 at 18:01 ••• 48,209 views

03-03 IfElseSwitch

From Manuals

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
Flashes one of two LEDs, depending on the state of a 2-way switch. The LEDs are connected to D0 and D1 of J9. The switch is connected to D2 of J9. Please see schematic below for further details.
Flashes one of two LEDs, depending on the state of a 2-way switch. The LEDs are connected to D0 and D1 of J9. The switch is connected to D2 of J9. Please see schematic below for further details.
 +
 +
Debian GNU/Linux 5.0 electrum100 ttyS0
 +
 +
electrum100 login: root
 +
Password:
 +
Last login: Wed Jun 30 09:00:23 UTC 2010 on ttyS0
 +
Linux electrum100 2.6.33.5-at91 #1 Tue Jun 29 11:37:56 EST 2010 armv5tejl
 +
 +
The programs included with the Debian GNU/Linux system are free software;
 +
the exact distribution terms for each program are described in the
 +
individual files in /usr/share/doc/*/copyright.
 +
 +
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
 +
permitted by applicable law.
 +
Last was Wed Jun 30 09:10:46 2010 on ttyS0.
 +
 +
electrum100:~# passwd root
 +
Enter new UNIX password:
 +
Retype new UNIX password:
 +
passwd: password updated successfully
 +
 +
electrum100:~# date 063012222010
 +
Wed Jun 30 12:22:00 UTC 2010
 +
 +
electrum100:~# hwclock --systohc
[[Image:BAM210_IfElse.jpeg|center|]]
[[Image:BAM210_IfElse.jpeg|center|]]

Revision as of 14:31, 14 August 2014

Flashes one of two LEDs, depending on the state of a 2-way switch. The LEDs are connected to D0 and D1 of J9. The switch is connected to D2 of J9. Please see schematic below for further details.

Debian GNU/Linux 5.0 electrum100 ttyS0

electrum100 login: root
Password:
Last login: Wed Jun 30 09:00:23 UTC 2010 on ttyS0
Linux electrum100 2.6.33.5-at91 #1 Tue Jun 29 11:37:56 EST 2010 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last was Wed Jun 30 09:10:46 2010 on ttyS0.

electrum100:~# passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

electrum100:~# date 063012222010
Wed Jun 30 12:22:00 UTC 2010

electrum100:~# hwclock --systohc


BAM210
Schematic for example 03-03