The code-review tag has no usage guidance.
0
votes
2answers
22 views
neopixel not blinking
I have some neopixels, and I have one hooked up to my teensy.
I want to have the color change, when the push button is pressed vs not pressed. The LED will change colour when I upload the code, if I ...
1
vote
1answer
21 views
Results for GP2Y1010AU0F Dust Sensor
I am using Dust Sensor GP2Y1010AU0F
I downloaded the code from the manufacturer here:
http://www.waveshare.com/wiki/Dust_Sensor
/**********************************************************************...
-3
votes
1answer
31 views
I need to power some coils sequentially, can someone help me with the code?
int coilSetOne = 0;
int coilSetTwo = 1;
int coilSetThree = 2;
int coilSetFour = 3;
int switchInput = 4;
void setup()
{
pinMode(coilSetOne, OUTPUT);
pinMode(coilSetTwo, OUTPUT);
pinMode(...
0
votes
1answer
36 views
What's up with my code?
Sorry if my code isn't well written or anything because I'm new to Arduino and coding in C, but what is wrong with my code?
int sidepin = 2;
int LED = 5;
int val;
void setup() {
pinMode(sidepin, ...
0
votes
1answer
65 views
Button Relay Control
How can I fix this sketch to make it so that once the button is pressed, it performs some action for a certain amount of time and then returns back to a low state until it is pressed again. For ...
0
votes
1answer
107 views
MPU6050 code explanation
I'm new to arduino and electronics. I've been trying to use the MPU6050 with my arduino but I'm having difficulty understanding the code. I'm referring to the code put up on the arduino website (http:/...
0
votes
2answers
36 views
“Return” Code Not Working
I'm trying to experiment with a "return" function. Yet each time I try to run my program, there happens to be an error, like "expected declaration before '}' token."
Can someone explain the basics of ...
1
vote
1answer
75 views
Quick Programming Check/Review
I've been racking my head trying to start programming in a library organized method. My code works, but the translation and split to a .h and .cpp file is riddled with errors.
It's gotta be stupidly ...