This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int correction = 0; | |
| // Right motor | |
| const int In1 = 10; | |
| const int In2 = 11; | |
| // Left motor | |
| const int In3 = 8; | |
| const int In4 = 9; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using System.Threading.Tasks; | |
| public class AudioHandler : MonoBehaviour | |
| { | |
| private AudioSource audiosource1; | |
| private AudioSource audiosource2; | |
| private AudioSource[] audiosources; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Servo.h> | |
| Servo myservo; | |
| int angle = 0; | |
| #include <LiquidCrystal_I2C.h> | |
| #include <Wire.h>; | |
| LiquidCrystal_I2C lcd1(0x27, 16, 2); // Address, columns, rows | |
| // Hall magnetic sensor | |
| int magneticSensor = A0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| #define PERPH_ADDR 8 | |
| #define PERPH_ADDR2 9 | |
| #define ANSWERSIZE 6 | |
| void setup() | |
| { | |
| Wire.begin(); | |
| Serial.begin(9600); | |
| Serial.println("I2C controller Demonstration"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Coin : MonoBehaviour | |
| { | |
| void Start() | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Servo.h> | |
| Servo myservo; | |
| int angle = 0; | |
| #include <LiquidCrystal_I2C.h> | |
| #include <Wire.h>; | |
| LiquidCrystal_I2C lcd1(0x27, 16, 2); | |
| // LED | |
| const int led = 7; |