Skip to content

Commit

Permalink
fw19111
Browse files Browse the repository at this point in the history
  • Loading branch information
edumeneses committed Oct 8, 2021
1 parent ca9cd2b commit 6ce1657
Show file tree
Hide file tree
Showing 566 changed files with 430,052 additions and 913,043 deletions.
Binary file removed 3D_printing/T-Stick(extension_kit).3mf
Binary file not shown.
319,736 changes: 0 additions & 319,736 deletions 3D_printing/T-Stick(extension_kit)_0.2mm_PLA_MK3S_5h21m.gcode

This file was deleted.

Binary file removed 3D_printing/T-Stick(sopranino_kit).3mf
Binary file not shown.
584,119 changes: 0 additions & 584,119 deletions 3D_printing/T-Stick(sopranino_kit)_0.2mm_PLA_MK3S_8h42m.gcode

This file was deleted.

Binary file removed 3D_printing/T-Stick_battery_cap(genetic).stl
Binary file not shown.
Binary file removed 3D_printing/T-Stick_capsense_bed.stl
Binary file not shown.
Binary file removed 3D_printing/T-Stick_dummy_bed.stl
Binary file not shown.
Binary file removed 3D_printing/T-Stick_esp_bed.stl
Binary file not shown.
Binary file removed 3D_printing/T-Stick_esp_pin.stl
Binary file not shown.
Binary file removed 3D_printing/T-Stick_imu_bed.stl
Binary file not shown.
Binary file removed 3D_printing/T-Stick_pole.stl
Binary file not shown.
2,243 changes: 2,243 additions & 0 deletions Eagle Libraries/Capsense16_25092018.brd

Large diffs are not rendered by default.

9,216 changes: 9,216 additions & 0 deletions Eagle Libraries/Capsense16_25092018.sch

Large diffs are not rendered by default.

Binary file added Eagle Libraries/PCB_board_20190523141823.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8,723 changes: 8,723 additions & 0 deletions Eagle Libraries/T-Stick.lbr

Large diffs are not rendered by default.

1,892 changes: 1,892 additions & 0 deletions Eagle Libraries/T-Stick.lbr.old

Large diffs are not rendered by default.

8,568 changes: 8,568 additions & 0 deletions Sopranino/2G/172/Configuration/2stick_Sopranino2G_eeprom_setup.maxpat

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions Sopranino/2G/172/Firmware/firmware_eeprom/accelCalib.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// THIS NEEDS TO BE REVISED AND RE-IMPLEMENTED!
// Calibration method only done if specified

void calib(){

// delay(10); // Wait before the calibration.
// int i =0;
// int calib_x = 0;
// int calib_y = 0;
// int calib_z = 0;
// for(i=0; i<100; i++)
// {
//// Serial.print("i = "); Serial.println(i);
// readAccelerometer();
// calib_x += outxyz[0];
// calib_y += outxyz[1];
// calib_z += outxyz[2];
// delay(10);
// }
//
// float cal_x = (float)calib_x/100;
// float cal_y = (float)calib_y/100;
// float cal_z = (float)calib_z/100;
// calib_x = -(cal_x/4);
// calib_y = -(cal_y/4);
// calib_z = -((cal_z-256)/4);
//// Serial.print("cal_x: ");Serial.println((byte)calib_x,BIN);
//// Serial.print("cal_y: ");Serial.println((byte)calib_y,BIN);
//// Serial.print("cal_z: ");Serial.println((byte)calib_z,BIN);
//
// writeTo(0x1E,(byte)calib_x);
// writeTo(0x1F,(byte)calib_y);
// writeTo(0x20,(byte)calib_z);

}
23 changes: 23 additions & 0 deletions Sopranino/2G/172/Firmware/firmware_eeprom/eeprom_stuff.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#endif

template <class T> int EEPROM_writeAnything(int ee, const T& value)
{
const byte* p = (const byte*)(const void*)&value;
int i;
for (i = 0; i < sizeof(value); i++)
EEPROM.write(ee++, *p++);
return ee;
}

template <class T> int EEPROM_readAnything(int ee, T& value)
{
byte* p = (byte*)(void*)&value;
int i;
for (i = 0; i < sizeof(value); i++)
*p++ = EEPROM.read(ee++);
return ee;
}
Loading

0 comments on commit 6ce1657

Please sign in to comment.