Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********* Pleasedontcode.com **********
- Pleasedontcode thanks you for automatic code generation! Enjoy your code!
- - Terms and Conditions:
- You have a non-exclusive, revocable, worldwide, royalty-free license
- for personal and commercial use. Attribution is optional; modifications
- are allowed, but you're responsible for code maintenance. We're not
- liable for any loss or damage. For full terms,
- please visit pleasedontcode.com/termsandconditions.
- - Project: Sensor Initialization
- - Source Code compiled for: ESP32 DevKit V1
- - Source Code created on: 2025-07-13 15:10:11
- ********* Pleasedontcode.com **********/
- /****** SYSTEM REQUIREMENTS *****/
- /****** SYSTEM REQUIREMENT 1 *****/
- /* im using tfng driver this is reciver code of myn */
- /* esp 32 reciver signals from manthoer esp32 which */
- /* is connetcted to mpu6050 */
- /****** END SYSTEM REQUIREMENTS *****/
- /* START CODE */
- /****** DEFINITION OF LIBRARIES *****/
- #include <Wire.h>
- #include <MPU6050.h> //https://github.com/electroniccats/mpu6050
- /****** FUNCTION PROTOTYPES *****/
- void setup(void);
- void loop(void);
- /***** DEFINITION OF DIGITAL INPUT PINS *****/
- const uint8_t gyro_MPU6050_Interrupt_PIN_D4 = 4;
- /***** DEFINITION OF I2C PINS *****/
- const uint8_t gyro_MPU6050_I2C_PIN_SDA_D21 = 21;
- const uint8_t gyro_MPU6050_I2C_PIN_SCL_D22 = 22;
- const uint8_t gyro_MPU6050_I2C_SLAVE_ADDRESS = 104;
- /****** DEFINITION OF LIBRARIES CLASS INSTANCES*****/
- void setup(void)
- {
- // put your setup code here, to run once:
- pinMode(gyro_MPU6050_Interrupt_PIN_D4, INPUT);
- }
- void loop(void)
- {
- // put your main code here, to run repeatedly:
- }
- /* END CODE */
Advertisement
Add Comment
Please, Sign In to add comment