Skip to content

Instantly share code, notes, and snippets.

Project Name

Description

Briefly describe the project to provide a consolidated understanding.

Objectives

Specify the main objectives driving the development of this project.

Key Features

  • List the main features of the project.
#include "Arduino.h"
#define BUTTON_GPIO 33
#define DEBOUNCE_DELAY 100
unsigned long lastDebounceTime = 0;
bool buttonState = HIGH;
void setup() {
pinMode(BUTTON_GPIO, INPUT_PULLUP);
name: PlatformIO CI
on: [push]
jobs:
dependencies:
name: setup dependencies
runs-on: ubuntu-latest
steps:
#include <Arduino.h>
#include <mbedtls/aes.h>
#define PROCESS_FAIL -1
int encrypt(uint8_t *input, uint8_t size, uint8_t key[16], uint8_t *encrypt) {
mbedtls_aes_context encryptContext;
uint8_t iv[16] = {0};
int ret = 0;
#include <Arduino.h>
#include "rom/md5_hash.h"
extern "C" {
#include "crypto/base64.h"
}
void setup() {
Serial.begin(9600);
const char* message = "Hello World";
#include <Arduino.h>
extern "C" {
#include "crypto/base64.h"
}
void setup() {
Serial.begin(9600);
const char* message = "Hello World";
<template>
<div id="app">
<form id="checkoutForm">
<input type="submit" @click="pay" id="checkout-button" value="pay" />
</form>
</div>
</template>
<script>
import axios from 'axios'
#include <Arduino.h>
#include <WiMODLoRaWAN.h>
#include <ArduinoJson.h>
#define LOT "20120102"
#define ITEM "1010201010"
#define MC "0224"
#define OP "10"
static TWiMODLORAWAN_TX_Data txData;
/***************************************************
This is our touchscreen painting example for the Adafruit ILI9341 Breakout
----> http://www.adafruit.com/products/1770
Check out the links above for our tutorials and wiring diagrams
These displays use SPI to communicate, 4 or 5 pins are required to
interface (RST is optional)
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
oldPower = 0.0
power = 0.0
oldVolt = 0.0
volt = 0.0
slope = 1
func calculateOAndP() :
volt = readVolt()
current = readCurrent()