项目地址:https://www.tinkercad.com/things/1maNW6J7e7k-elevator-simulation #include <LiquidCrystal.h>#definepwm1 9#definepwm2 10//#define tmpPin A0//#define piezoPin 8//boolean direction = 0;//const int tempmax=35;//int speed;inti=1; LiquidCrystal lcd(12,11,5,4,3,2);#definebtn3...
项目地址:https://www.tinkercad.com/things/9Yv09OZnrXy-temperature-sensor-with-display //CREATED BY GIOVANNI, LUCAS B, LUCAS F & THIAGO.//WHEN THE TEMPERATURE IS HIGHER THAN 35ºC IT PLAYS ANOTHER SOUND FREQUENCY.//Include the library code.#include <LiquidCrystal.h>//Initialize the librar...
Tinkercad Projects » In the long tradition of fortune telling Magic 8 Balls I created a self-contained Magic 2 Ball running a Raspberry Pi Zero 2. When you shake the ball and turn it over, the answer tile is displayed on a round screen and the answer is spoken out loud. The 110mm...
项目地址:https://www.tinkercad.com/things/0k0l2s7QP3l-arduino-voltmeter-ammeter #include <LiquidCrystal.h>LiquidCrystal lcd(12,11,4,5,6,7);floatvoltageInput =0.0;floatvoltageReading =0.0;floatcurrentReading =0.0;floatRA =15000.0;floatRB =1500.0;voidsetup() { lcd.begin(16,2); lcd.clear()...
项目地址:https://www.tinkercad.com/things/cz2cdSN3EFS-pir-sensor-with-lcd-display #include <LiquidCrystal.h>LiquidCrystal lcd(12,11,7,6,5,4);voidsetup() { Serial.begin(9600); lcd.begin(16,2); pinMode(8,INPUT); }voidloop()
This example code is in the public domain.http://www.arduino.cc/en/Tutorial/LiquidCrystal*///include the library code:#include <LiquidCrystal.h>//initialize the library with the numbers of the interface pinsLiquidCrystal lcd(12,11,5,4,3,2);voidsetup() {//set up the LCD's number of co...
项目地址:https://www.tinkercad.com/things/cz2cdSN3EFS-pir-sensor-with-lcd-display #include <LiquidCrystal.h>LiquidCrystal lcd(12,11,7,6,5,4);voidsetup() { Serial.begin(9600); lcd.begin(16,2); pinMode(8,INPUT); }voidloop()