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 <iostream> | |
| void setup(){ | |
| // put your setup here | |
| std::cout << "in setup\n"; | |
| } | |
| void loop(){ | |
| //put your loop here |
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
| import cadquery as cq | |
| import math | |
| pitch_diameter = 12 | |
| blank_diameter = 12.995 | |
| depth = 1.17 | |
| #indicates angle | |
| gear_blank = ( |
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 <Arduino.h> | |
| #include <ModbusMaster.h> | |
| #include <HardwareSerial.h> | |
| #include <WiFi.h> | |
| #include <ESPmDNS.h> | |
| #include <WiFiUdp.h> | |
| #include <ArduinoOTA.h> | |
| #include <neotimer.h> | |
| #include <SerialCommands.h> | |
| // This defines ssid and password for the wifi configuration |
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 <Arduino.h> | |
| #include <SimpleFOC.h> | |
| #include <neotimer.h> | |
| int led = 13; | |
| int d = 200; | |
| BLDCMotor motor = BLDCMotor(7); | |
| BLDCDriver3PWM driver = BLDCDriver3PWM(25, 26, 27, 18); | |
| //Pullup pullup = Pullup::INTERN; |
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 "FOCals31313.h" | |
| #define kNOERROR 0 | |
| #define kDATATOOLONGERROR 1 | |
| #define kRECEIVEDNACKONADDRESSERROR 2 | |
| #define kRECEIVEDNACKONDATAERROR 3 | |
| #define kOTHERERROR 4 | |
| int deviceAddress = 96; | |
| MagneticSensorI2CConfig_s ALS31313_I2C_CONFIG = { |
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
| // Open loop motor control example for L298N board | |
| #include <SimpleFOC.h> | |
| #include <neotimer.h> | |
| #define IN1 14 | |
| #define IN2 12 | |
| #define IN3 13 | |
| //#define IN4 8 | |
| // BLDC motor & driver instance |
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
| 18LTS schoch@xeon:/mnt/c/Users/jesse/Documents/Arduino/i2s_grbl/Grbl_Esp32/Grbl_Esp32/src/Machines$ cat jesse_6pack.h | |
| #pragma once | |
| // clang-format off | |
| /* | |
| 6_pack_stepstick_v1.h | |
| Covers all V1 versions V1p0, V1p1, etc | |
| Part of Grbl_ESP32 |
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
| 18LTS schoch@xeon:/mnt/c/Users/jesse/Documents/Arduino/i2s_grbl/Grbl_Esp32/Grbl_Esp32$ git diff origin/master > diff.out | |
| 18LTS schoch@xeon:/mnt/c/Users/jesse/Documents/Arduino/i2s_grbl/Grbl_Esp32/Grbl_Esp32$ cat diff.out | |
| diff --git a/Grbl_Esp32/config.h b/Grbl_Esp32/config.h | |
| index e50f210..239c565 100644 | |
| --- a/Grbl_Esp32/config.h | |
| +++ b/Grbl_Esp32/config.h | |
| @@ -114,19 +114,19 @@ Some features should not be changed. See notes below. | |
| //CONFIGURE_EYECATCH_BEGIN (DO NOT MODIFY THIS LINE) | |
| #define ENABLE_BLUETOOTH // enable bluetooth |
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> | |
| #include <wiring_pulse.h> | |
| static uint32_t PWM_in = PA0; | |
| int servoPin = PA1; | |
| int TACH_PIN = PA9; |
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 <SPI.h> | |
| #include <Wire.h> | |
| #include <Adafruit_GFX.h> | |
| #include <Adafruit_SSD1306.h> | |
| #define OLED_RESET 9 | |
| Adafruit_SSD1306 display(OLED_RESET); | |
| #include <Encoder.h> | |
| #include <DS3231M.h> |