Comments (5)
That's because PIN_PC2
is defined as 16:
MiniCore/avr/variants/standard/pins_arduino.h
Line 172 in 0bb50f6
Instead of Serial.println(Motion);
you should do Serial.println(digitalRead(Motion));
instead.
from minicore.
Thanks!
from minicore.
Sorry, to come back to this!
What are the reasons that you should use digitalread here? Normally this isn't necessary, is it?
Is this due to the type of bootloader?
from minicore.
Because Serial.println(Motion);
will only print the value Motion
holds (16), while Serial.println(digitalRead(Motion));
will read the value of pin Motion
(16). This isn't MiniCore spesific, but applies for all Arduino boards.
from minicore.
Thanks for your explanation. Learned something again!
from minicore.
Related Issues (20)
- Trying to enlarge pinout diagrams in README fails with 'Non-Image content-type returned' HOT 2
- MiniCore Burn Bootloader - Not Working on M3 MacBook Pro HOT 5
- Warnings with TimerInterrupt library
- is LGT8F328P supported ? HOT 1
- Fails to compile Strings declared empty on Atmega328PB HOT 3
- Internal Pull up error mega328 HOT 3
- Adding `-B 4` by default to `avrdude` HOT 2
- ATmega328PB and the PWM output PB1, PB2 and PB3 HOT 2
- burn bootloader to mega88 fail HOT 1
- Boot time atmega168pb HOT 2
- Uploading error : given error when upload to Arduino UNO r3 using mobile app Arduino studio on HOT 1
- Not compile error "Compilation error: 'LED' does not name a type" Atmega168 include CPP with class declaration. HOT 2
- sir,i saw a problem with hfuse for atmega328p with bootloader running on internal(8MHz) and also for external(16MHz) oscillator HOT 3
- 328PB uploading trouble HOT 16
- 328PB Challenges HOT 2
- ReadMe pictures broken links HOT 1
- Broken link to Pinout picture HOT 1
- delay() not working ATMEGA328P-AU HOT 9
- Serial.print send gibberish text HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minicore.