This file contains 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
from turtle import * | |
step = 15 | |
penup() | |
tracer(0) | |
for i in range(-10, 11): | |
for j in range(-10, 11): | |
goto(i * step, j * step) | |
if i == 0 or j == 0: | |
dot(size=4) | |
else: |
This file contains 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
#define BUZZER_PIN 12 // пин с пищалкой | |
#define ledPin 13 // светодиод | |
#define yLedPin 11 // пин с пищалкой | |
#define buttonPin 3 // кнопка | |
bool state = 0; | |
long startTime = 0; | |
int reactionTime = 0; | |
void setup() | |
{ | |
pinMode(BUZZER_PIN, OUTPUT); |