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