Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
/********* Pleasedontcode.com ********** Pleasedontcode thanks you for automatic code generation! Enjoy your code! - Terms and Conditions: You have a non-exclusive, revocable, worldwide, royalty-free license for personal and commercial use. Attribution is optional; modifications are allowed, but you're responsible for code maintenance. We're not liable for any loss or damage. For full terms, please visit pleasedontcode.com/termsandconditions. - Project: Alloo - Source Code compiled for: Arduino Uno - Source Code created on: 2023-11-13 09:31:10 - Source Code generated by: SSS Shivansh ********* Pleasedontcode.com **********/ /****** DEFINITION OF LIBRARIES *****/ #include
/****** SYSTEM REQUIREMENT 1 *****/ /* Persistence of vision display which displays text */ /* and I can change that text over WiFi via ESP8266 */ /****** FUNCTION PROTOTYPES *****/ void setup(void); void loop(void); void displayText(const char* text); /***** DEFINITION OF DIGITAL OUTPUT PINS *****/ const uint8_t LED_PIN_D2 = 2; const uint8_t LED_PIN_D3 = 3; const uint8_t LED_PIN_D4 = 4; const uint8_t LED_PIN_D5 = 5; const uint8_t LED_PIN_D6 = 6; void setup(void) { // put your setup code here, to run once: pinMode(LED_PIN_D2, OUTPUT); pinMode(LED_PIN_D3, OUTPUT); pinMode(LED_PIN_D4, OUTPUT); pinMode(LED_PIN_D5, OUTPUT); pinMode(LED_PIN_D6, OUTPUT); Serial.begin(9600); Serial.println("Setup complete"); } void loop(void) { // put your main code here, to run repeatedly: // Example: Change the displayed text every 5 seconds displayText("Hello"); delay(5000); displayText("World"); delay(5000); } void displayText(const char* text) { // Code to control the persistence of vision display and update the displayed text // Implement your display control logic here // Example: Turn on LEDs based on the text pattern if (strcmp(text, "Hello") == 0) { digitalWrite(LED_PIN_D2, HIGH); digitalWrite(LED_PIN_D3, HIGH); digitalWrite(LED_PIN_D4, LOW); digitalWrite(LED_PIN_D5, LOW); digitalWrite(LED_PIN_D6, HIGH); } else if (strcmp(text, "World") == 0) { digitalWrite(LED_PIN_D2, HIGH); digitalWrite(LED_PIN_D3, LOW); digitalWrite(LED_PIN_D4, HIGH); digitalWrite(LED_PIN_D5, LOW); digitalWrite(LED_PIN_D6, HIGH); } }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)