const int LED_RED = 7; //RED LED ON PIN 7
const int LED_GREEN = 8; // GREEN LED ON PIN 8
const int BUTTON = 9; //PUSH BUTTON ON PIN 9 PULL-UP
int BUTTON_COUNTER =0;
unsigned long DEBOUNCE = 0;
void setup() {
Serial.begin(9600);
pinMode(BUTTON, INPUT_PULLUP); //DEFINE BUTTON AS INPUT
pinMode(LED_GREEN, OUTPUT); //DEFINE LEDS PINS AS OUTPUTS
pinMode(LED_RED, OUTPUT);
digitalWrite(LED_GREEN, HIGH); //PULL PIN HIGH TO ASSURE OFF
digitalWrite(LED_RED, HIGH); //PULL PIN HIGH TO ASSURE OFF
}
void loop() {
if (BUTTON_COUNTER == 10){
digitalWrite(LED_GREEN, LOW);
digitalWrite(LED_RED, LOW);
Serial.println("10 steps, well done");
BUTTON_COUNTER = 0;
}
}
notsolowki:
here maybe this can help you get started
I don't agree with giving a kid code for a school assignment when there is no evidence that the s/he has done any work him/herself. The kid will get a grade s/he has not earned.
Would you like to go to a dentist who cheated at med school?
[off topic / not as comment / do agree with the statement!]
I don't want a dentist at all who did me school. I want a dentist who finished (cheating-less) dentist school Might differ in other countries but here the two are not related
im just trying to help. i dont see how looking at any other example sketch would be any different. besides, the code i gave them dont do anything its not complete.
septillion:
They can, of course in exchange for legal tender, ask here.
There is nothing on the G&C board header that says tender (legal or other) need or even should or even might change hands. Why does everyone think that?
True, but I'm not crazy enough to do without something in exchange. Participating in a fun project gives fun/satisfaction in exchange. But when somebody just ask for code (school assignment or commercial product) I'm only willing to give that in exchange for money. And that's I think the general reaction on this forum.
You are of course free to do it without anything in exchange. But that does mark you as "crazy' in my book
septillion:
But when somebody just ask for code (school assignment .... ) I'm only willing to give that in exchange for money.
Interesting that you wouldn't object to providing an answer for school work which the student would likely pass off as theirs without citing you, on ethical grounds but purely pecuniary ones.
You have no issue helping a student cheat, long as you make money out of it.
Anyway fwiw I PM'd OP a working sketch. I'm not his or her conscience. But it would be interesting to see how, if at all, a student cites assistance from a forum and if they sign the common "own work" anti plagiarism box.
Also wondering how often a teacher picks up that students' solutions come from a forum?
Also visualising a dental student asking for help on a dental forum. Most replies would be "post the x rays" and "what did you try so far" and "is Google broken where you live?"
coffeeBean:
Its
Interesting that you wouldn't object to providing an answer for school work which the student would likely pass off as theirs without citing you, on ethical grounds but purely pecuniary ones.
You have no issue helping a student cheat, long as you make money out of it.
Everything is relative and I'm not saying I'm not* weighing ethical grounds, but if someone is willing to pay me 1000 euros for something simple as this, yeah, I confess I would be guilty. Would not do it for beer money as that would apply if someone would ask gently for a hobby project.
Same as programming, not setting something does not mean clearing it either.
septillion:
I'm not saying I'm not* weighing ethical ground
I wasn't judging btw: merely saying it was interesting.
I firmly believe a forum's not a conscience; if I feel like supplying some turnkey code I will- it's the recipient's business what they do with that. (I just won't charge for it (not that I have a mechanism for doing so) and if it's such a big job that it cuts into my time too drastically I won't do it anyway.)