Code Monkey home page Code Monkey logo

Comments (3)

MCUdude avatar MCUdude commented on June 11, 2024

Please share your test code, and I'll try it on a board.

from minicore.

ecvary avatar ecvary commented on June 11, 2024

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.

ecvary avatar ecvary commented on June 11, 2024

All work when i remove analog test from sketch.
Thanks for respons.

from minicore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.