Skip to content

Instantly share code, notes, and snippets.

View abobija's full-sized avatar

Alija Bobija abobija

View GitHub Profile
@abobija
abobija / init.lua
Created November 16, 2019 21:10
Code written for ESP32 in YouTube video https://youtu.be/b6W0ps3IhzA
local rfidmod = nil
local function init_rfid()
if rfidmod ~= nil then
return
end
rfidmod = require('rfid32')({
pin_sda = 22,
pin_clk = 19,
@abobija
abobija / index.html
Last active September 26, 2019 19:19
Code written in YouTube video https://youtu.be/2mlmr_HwWgo
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ESP32</title>
<style>
button {
padding: 20px;
@abobija
abobija / index.html
Created September 26, 2019 13:25
Code written in YouTube video https://youtu.be/A_j-nDV46Ik
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>ESP32</title>
</head>
<body>
<h1>Hello from ESP32</h1>
@abobija
abobija / Program.cs
Created April 2, 2019 13:24
Application written in YouTube video https://bit.ly/2HSPF7n
using NApi32;
using System;
using System.Threading;
namespace Api32ClientApp
{
class Program
{
static void Main(string[] args)
{
@abobija
abobija / init.lua
Created April 1, 2019 09:50
Code written in YouTube video https://bit.ly/2V8BgH9
local BLUE_LED = 2
gpio.config({ gpio = BLUE_LED, dir = gpio.IN_OUT })
gpio.write(BLUE_LED, 0)
local api = nil
local function init_api32()
if api == nil then
api = require('api32')