Skip to content

Instantly share code, notes, and snippets.

View sabas1080's full-sized avatar
🐈
Working

Sabas sabas1080

🐈
Working
View GitHub Profile
@sabas1080
sabas1080 / TM_Connector.pde
Created July 1, 2023 19:38
TM Connector for teachablemachine update java library
/*
Modified: Andres Sabas 2023
Copyright 2021 Google LLC. Bose All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
interface Secrets {
connString: string;
wifi: StringMap;
}
// this is to be overridden in a separate file
let secrets: Secrets;
function test() {
const log = console.log;
@sabas1080
sabas1080 / main.py
Created April 3, 2019 19:21
Simple demo of sending and receiving data with the RFM95 LoRa radio with CircuitPython and USBStick Electronic Cats
# Simple demo of sending and receiving data with the RFM95 LoRa radio.
# Based in the work of: Tony DiCola
import board
import busio
import digitalio
import adafruit_rfm9x
# Define radio parameters.
@sabas1080
sabas1080 / meowmeow_midiusb.ino
Last active April 2, 2019 19:51
This example demonstrates how to use Meow Meow with MIDI USB
/************************************************************
meowmeow_midiusb.ino
Meow Meow - Using the Meow Meow you can make anything into a key
just by connecting a few alligator clips
Andres Sabas @ Electronic Cats
Original Creation Date: April 2, 2019
https://github.com/ElectronicCats/MeowMeow
This example demonstrates how to use Meow Meow with MIDI USB
// Copyright 2017-2018 Pavitra, All rights reserved
// Released under the Apache License, Version 2.0
// http://www.apache.org/licenses/LICENSE-2.0
package com.pavitra;
import android.content.Context;
import android.util.Log;
import com.physicaloid.lib.*;
/************************************************************
Especial para SORIA FEBRERO 2019
SPANISH
Ground station
Ground station - Estacion Terrena para CatSat
Eduardo Contreras @ Electronic Cats
Original Creation Date: Oct 8, 2018
https://github.com/ElectronicCats/CatSatZero
/*Serial Communication for Radiation Detector Arduino Compatible DIY Kit ver 2.01 or higher
* http://radiohobbystore.com/radiation-detector-geiger-counter-diy-kit-second-edition.html
* Allow to connect the kit to computer and use the kit with Radiation Logger PC software
* http://radiohobbystore.com/radiation-logger/
* This Arduino sketch written by Alex Boguslavsky RH Electronics; mail: support@radiohobbystore.com
* CPM counting algorithm is very simple, it just collect GM Tube events during presettable log period.
* For radiation monitoring station it's recommended to use 30-60 seconds logging period. Feel free to modify
* or add functions to this sketch. This Arduino software is an example only for education purpose without any
* warranty for precision radiation measurements. You are fully responsible for your safety in high
* radiation area!!
let comando = 0
let stringSend = ""
pins.A6.digitalWrite(false)
airQuality.appStart()
bme280.Address(BME280_I2C_ADDRESS.ADDR_0x76)
bme280.PowerOn()
forever(function () {
comando = lora.beginPacket()
stringSend = "" + stringSend + bme280.temperature().toString()
stringSend = "" + stringSend + ","
// --------------------------------------
// i2c_scanner
//
// Version 1
// This program (or code that looks like it)
// can be found in many places.
// For example on the Arduino.cc forum.
// The original author is not known.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
Hola
Hola2