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: Button Display - Source Code compiled for: Arduino Nano - Source Code created on: 2024-01-28 15:50:28 ********* Pleasedontcode.com **********/ /****** SYSTEM REQUIREMENTS *****/ /****** SYSTEM REQUIREMENT 1 *****/ /* On LCD1602_LCD1602I2C_I2C display two values, in */ /* the first line, type: 1000 PLN in the second */ /* line, type: 1000 PLN */ /****** END SYSTEM REQUIREMENTS *****/ /****** DEFINITION OF LIBRARIES *****/ #include
#include
#include
#include
/****** SYSTEM REQUIREMENTS *****/ /****** SYSTEM REQUIREMENT 1 *****/ const uint8_t LCD1602_LCD1602I2C_I2C_PIN_SDA_A4 = A4; const uint8_t LCD1602_LCD1602I2C_I2C_PIN_SCL_A5 = A5; const uint8_t LCD1602_LCD1602I2C_I2C_SLAVE_ADDRESS = 0x27; /****** FUNCTION PROTOTYPES *****/ void setup(void); void loop(void); /***** DEFINITION OF DIGITAL INPUT PINS *****/ const uint8_t zielonyP_PushButton_PIN_D2 = 2; const uint8_t czerwonyP_PushButton_PIN_D3 = 3; /****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/ EasyButton zielonyP_PushButton(zielonyP_PushButton_PIN_D2); EasyButton czerwonyP_PushButton(czerwonyP_PushButton_PIN_D3); LiquidCrystal_I2C lcd(LCD1602_LCD1602I2C_I2C_SLAVE_ADDRESS, 16, 2); // Modify the initialization here void setup(void) { // put your setup code here, to run once: pinMode(zielonyP_PushButton_PIN_D2, INPUT_PULLUP); pinMode(czerwonyP_PushButton_PIN_D3, INPUT_PULLUP); zielonyP_PushButton.begin(); czerwonyP_PushButton.begin(); lcd.init(); // Initialize the LCD module lcd.backlight(); // Turn on the backlight lcd.setCursor(0, 0); lcd.print("1000 PLN"); lcd.setCursor(0, 1); lcd.print("1000 PLN"); } void loop(void) { // put your main code here, to run repeatedly: zielonyP_PushButton.read(); czerwonyP_PushButton.read(); }
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)