fix setup modes
This commit is contained in:
@@ -89,9 +89,9 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
while(1) {
|
|
||||||
MODE_OUTPUT(B, D1);
|
MODE_OUTPUT(B, D1);
|
||||||
MODE_INPUT(D, SW1);
|
MODE_INPUT(D, SW1);
|
||||||
|
while(1) {
|
||||||
if (IS_PIN_SET(D, SW1)) {
|
if (IS_PIN_SET(D, SW1)) {
|
||||||
SET(PORTB, D1);
|
SET(PORTB, D1);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user