Comments (3)
Please share your test code, and I'll try it on a board.
from minicore.
Please share your test code, and I'll try it on a board.
``
#define p2 2
#define p3 3
#define p4 4
#define p5 5
#define p6 6
#define p7 7
#define p8 8
#define p9 9
#define p10 10
#define p11 11
#define p12 12
#define pA0 A0
#define pA1 A1
#define pA2 A2
#define pA3 A3
#define pA4 A4
#define pA5 A5
#define pA6 A6
#define pA7 A7
#define led 13
void setup() {
delay(1000);
pinMode(p2, INPUT_PULLUP);
pinMode(p3, INPUT_PULLUP);
pinMode(p4, INPUT_PULLUP);
pinMode(p5, INPUT_PULLUP);
pinMode(p6, INPUT_PULLUP);
pinMode(p7, INPUT_PULLUP);
pinMode(p8, INPUT_PULLUP);
pinMode(p9, INPUT_PULLUP);
pinMode(p10, INPUT_PULLUP);
pinMode(p11, INPUT_PULLUP);
pinMode(p12, INPUT_PULLUP);
pinMode(pA0, INPUT);
pinMode(pA1, INPUT);
pinMode(pA2, INPUT);
pinMode(pA3, INPUT);
pinMode(pA4, INPUT);
pinMode(pA5, INPUT);
pinMode(pA6, INPUT);
pinMode(pA7, INPUT);
pinMode(led, OUTPUT);
digitalWrite(led, LOW);
Serial.begin(9600);
}
void loop() {
int p2P = digitalRead(p2);
int p3P = digitalRead(p3);
int p4P = digitalRead(p4);
int p5P = digitalRead(p5);
int p6P = digitalRead(p6);
int p7P = digitalRead(p7);
int p8P = digitalRead(p8);
int p9P = digitalRead(p9);
int p10P = digitalRead(p10);
int p11P = digitalRead(p11);
int p12P = digitalRead(p12);
int pA0P = analogRead(pA0);
int pA1P = analogRead(pA1);
int pA2P = analogRead(pA2);
int pA3P = analogRead(pA3);
int pA4P = analogRead(pA4);
int pA5P = analogRead(pA5);
int pA6P = analogRead(pA6);
int pA7P = analogRead(pA7);
Serial.print(p2P);
Serial.print(p3P);
Serial.print(p4P);
Serial.print(p5P);
Serial.print(p6P);
Serial.print(p7P);
Serial.print(p8P);
Serial.print(p9P);
Serial.print(p10P);
Serial.print(p11P);
Serial.println(p12P);
delay(100);
}
from minicore.
All work when i remove analog test from sketch.
Thanks for respons.
from minicore.
Related Issues (20)
- Ch340 upload problem HOT 2
- Problems with atmega 328pb and minicore? HOT 1
- atmega328pb wrong fuse settings? HOT 39
- No separate SPDR0 SPDR1 for the ATMega328PB? HOT 2
- avrdude urclock_res_check() error: HOT 9
- Clock options for ATMega328P are ambiguous HOT 1
- Not able to burn bootloader to Atmega88PB HOT 6
- MCUSR always reports 0 at startup HOT 13
- [feature] New 9.216MHz to Supported clock frequency. HOT 1
- Optiboot backward compatibility HOT 6
- Syntax Error HOT 11
- 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
- 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
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.