Skip to content

Instantly share code, notes, and snippets.

// --------------------------------------
// 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 know.
// Version 2, Juni 2012, Using Arduino 1.0.1
// Adapted to be as simple as possible by Arduino.cc user Krodal
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BNO055.h>
#include <utility/imumaths.h>
Adafruit_BNO055 bno = Adafruit_BNO055(55,0x29);
void setup(void)
{
Serial.begin(9600);
// Define the control inputs
#define MOT_A1_PIN 10
#define MOT_A2_PIN 9
#define MOT_B1_PIN 6
#define MOT_B2_PIN 5
void setup(void)
{
// Set all the motor control inputs to OUTPUT
pinMode(MOT_A1_PIN, OUTPUT);
/*
DigitalReadSerial
Reads a digital input on pin 2, prints the result to the Serial Monitor
This example code is in the public domain.
http://www.arduino.cc/en/Tutorial/DigitalReadSerial
*/
#include <Arduino.h>
#include <vector>
#include <WiFi.h>
#include <Wire.h>
#include "SPI.h"
#include "Adafruit_GFX.h" //for matrix led
#include "Adafruit_LEDBackpack.h"
#define REMOTEXY_MODE__ESP32CORE_WIFI_POINT
#include <RemoteXY.h>
from fpioa_manager import *
from Maix import I2S, GPIO
import audio
fm.register(18, fm.fpioa.GPIO1)
sound_en=GPIO(GPIO.GPIO1,GPIO.OUT)
sound_en.value(1)
# register i2s(i2s0) pin
fm.register(20,fm.fpioa.I2S0_OUT_D1, force=True)
#include <stdio.h>
#include <string.h>
//Description: input AT commands via serial monitor to learn how to use A9/A9G module
//version:v1.0
//Author:Charlin
//web: http://www.makerfabs.com
//
//Change the API key to yours
#include <SPI.h>
#include <Ethernet_STM.h>
#include <Wire.h>
#include <DFRobot_ADS1115.h>
DFRobot_ADS1115 ads(&Wire);
#if defined(WIZ550io_WITH_MACADDRESS)
;
#else
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
// Description: input AT commands via serial monitor to learn how to use 4G module
// version:v1.0
// Author:Vincent
// web: http://www.makerfabs.com
// This version is modify for SIM7600
// If define MODE_1A
// When "1A" or "1A" is entered, 0x1A is sent to the module.
// When sending SNS information, you need to send 0x1A to end the input.
@woodif
woodif / 485.ino
Last active March 12, 2023 08:40
/* Dev by IOXhop.com */
//#define DE_RE_PIN 4
#define MODE_SEND HIGH
#define MODE_RECV LOW
float temp = 0, humi = 0;
void readXY_MD02() {
uint8_t buff[] = {