Skip to content

Instantly share code, notes, and snippets.

@adell
adell / router.go
Last active January 14, 2022 21:12
Tentando habilitar cors em um projeto gin
package routes
import (
"time"
cors "github.com/gin-contrib/cors"
"github.com/gin-gonic/gin"
"github.com/hyperyuri/webapi-with-go/controllers"
)
@adell
adell / rgb
Created September 2, 2013 01:35
Com este projeto que utiliza 3 leds sendo nas azul, vermelho e verde, é possivel obter qualquer cor.
float RGB1[3];
float RGB2[3];
float INC[3];
int red, green, blue;
int RedPin = 11;
int GreenPin = 10;
int BluePin = 9;
@adell
adell / soft_blink
Last active December 22, 2015 03:09
Fazendo um led piscar de forma suave