Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
products:aruno:exp14 [2020/06/12 14:15] – alexnik | products:aruno:exp14 [2020/07/02 12:18] (текущий) – alexnik | ||
---|---|---|---|
Строка 4: | Строка 4: | ||
==== Схема эксперимента ==== | ==== Схема эксперимента ==== | ||
- | {{ : | + | {{ : |
- | {{ : | + | {{ : |
// | // | ||
Строка 22: | Строка 22: | ||
int f = 7; | int f = 7; | ||
int g = 6; | int g = 6; | ||
- | int dp = 10; | + | int h = 10; |
int keyPin = 12; | int keyPin = 12; | ||
Строка 120: | Строка 120: | ||
pinMode(i, | pinMode(i, | ||
pinMode(keyPin, | pinMode(keyPin, | ||
+ | digitalWrite(h, | ||
display0(); | display0(); | ||
| | ||
Строка 136: | Строка 137: | ||
} | } | ||
| | ||
+ | delay(100); | ||
x = x + 1; | x = x + 1; | ||
} | } | ||
- | if (x == 0) {clearDisplay(); | + | if (x == 0) {clearDisplay(); |
- | if (x == 1) {clearDisplay(); | + | if (x == 1) {clearDisplay(); |
- | if (x == 2) {clearDisplay(); | + | if (x == 2) {clearDisplay(); |
- | if (x == 3) {clearDisplay(); | + | if (x == 3) {clearDisplay(); |
- | if (x == 4) {clearDisplay(); | + | if (x == 4) {clearDisplay(); |
- | if (x == 5) {clearDisplay(); | + | if (x == 5) {clearDisplay(); |
- | if (x == 6) {clearDisplay(); | + | if (x == 6) {clearDisplay(); |
- | if (x == 7) {clearDisplay(); | + | if (x == 7) {clearDisplay(); |
- | if (x == 8) {clearDisplay(); | + | if (x == 8) {clearDisplay(); |
- | if (x == 9) {clearDisplay(); | + | if (x == 9) {clearDisplay(); |
if (x > 9) {x = 0;} | if (x > 9) {x = 0;} | ||
} | } |