#include <iostream>
using namespace std;
int main() {
int n;
while (true) {
cout << "Enter an integer from -50 to 50: ";
cin >> n;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Particle.h" | |
| SYSTEM_MODE(AUTOMATIC); | |
| // chambers on D0-D5 | |
| const pin_t CHAMBER_PINS[6] = { D0, D1, D2, D3, D4, D5 }; | |
| const char* CHAMBER_NAMES[6] = { "C1", "C2", "C3", "C4", "C5", "C6" }; | |
| const pin_t TRIGGER_PIN = D6; | |
| const char* TRIGGER_NAME = "TRIGGER"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "Particle.h" | |
| // Sends messages over USB Serial: e.g., "TRIGGER_DOWN", "C3_UP", "W_DOWN" | |
| SYSTEM_MODE(AUTOMATIC); | |
| // Trigger on D6 | |
| const pin_t TRIGGER_PIN = D6; | |
| const char* TRIGGER_NAME = "TRIGGER"; |
I hereby claim:
- I am a0a7 on github.
- I am a0a7 (https://keybase.io/a0a7) on keybase.
- I have a public key ASD7ejA0lmthwYXHmSZ9-Ytuj6GscqFrUeQ_Et9FGFDnUwo
To claim this, I am signing this object: