Questions tagged [pinmode]
7 questions
2
votes
1 answer
Safe to solder a slide switch to unused GPIO pins?
I have a Digispark Rev.3 Kickstarter with ATTiny85 (see pinout below) and a three pin slide switch (see example below). I want to use the slide switch to control a task running on the Digispark, with the example code below.
The center pin of the…
emma.makes
- 105
- 5
1
vote
1 answer
Setting pinmode() in header file
I am trying to have a header file to handle all my pin definitions and pinmodes.
This is the header:
#ifndef __HEADER_TESTER__
#define __HEADER_TESTER__
#include
const byte rxPin = 2;
const byte txPin = 3;
SoftwareSerial…
user1584421
- 1,349
- 3
- 19
- 32
1
vote
1 answer
Accessing Physical Pins in Arduino Due from Arduino IDE
It is possible to access the Physical Pin 93, Pin PC11 on ATSAM3X8E in Arduino Due from the Arduino IDE?
I am programming a Barebone ATSAM3X8E, and it do not seems to be allocated by Arduino Due nor by ATSAM3X8E for any other purpose than the PC…
Brethlosze
- 333
- 3
- 17
0
votes
1 answer
Can pin mode damage Arduino with connected electronics?
I am not that experienced with electronics, so this might be a silly question. But I dont know. Assume that I have connected some electronic circuit (transistors, leds, anything else) to the Arduino pins, is there any chance that I damage the…
Lemonbonbon
- 113
- 4
0
votes
1 answer
Is it possible for the Arduino's digital pin mode to flip from OUTPUT to INPUT unexpectedly?
I have an Arduino project (data logger intended to sample 100 samples per second for months) with firmware that is too long to post. It mostly works as supposed to, but I have a confusing issue I can't figure out: rarely, the indicator LEDs (driven…
Vulcan
- 227
- 2
- 6
-1
votes
1 answer
Use same pin for two purposes
I have only one pin available and I'd need to use it both for a digitalRead and for sending serial messages (assigning it the Tx role within a SoftwareSerial). I can alternate these two operations, but I don't seem to succeed. I could be interested…
lesath82
- 101
- 4
-1
votes
1 answer
Arduino as Multiplexer
This is a kind of an experiment, I just have a question on how Arduino ports work. Consider this sample: there is this target device that I'm trying to control with Arduino. The device uses a typical scanned keyboard (8 output columns and 5 input…
Jimmy Falcon
- 101
- 3