Fucked up the merge
This commit is contained in:
parent
6714374639
commit
03f2b55762
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mcopy-app",
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mcopy-app",
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"description": "GUI for the mcopy small gauge film optical printer platform",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -13,7 +13,7 @@ class McopyProjector {
|
|||
|
||||
uint8_t _motorSteps = 1600; //microstepped
|
||||
uint8_t _frames = 8;
|
||||
uint8_t _stepsPerFrame = 50; //round(_motorSteps / _frames);
|
||||
uint8_t _stepsPerFrame = 25; //round(_motorSteps / _frames);
|
||||
float _speed = 500.0;
|
||||
|
||||
int64_t _posTakeup = 0;
|
||||
|
|
|
@ -31,20 +31,16 @@
|
|||
#define FEED_DIR_PIN 7
|
||||
#define FEED_STEP_PIN 6
|
||||
|
||||
#define TAKEUP_SETTING_A 4
|
||||
#define TAKEUP_SETTING_B 5
|
||||
#define FEED_SETTING_A 8
|
||||
#define FEED_SETTING_B 9
|
||||
|
||||
AccelStepper takeup(AccelStepper::DRIVER, TAKEUP_STEP_PIN, TAKEUP_DIR_PIN);
|
||||
AccelStepper feed(AccelStepper::DRIVER, FEED_STEP_PIN, FEED_DIR_PIN);
|
||||
|
||||
//PROJECTOR CONSTANTS
|
||||
const int BUTTON = 10;
|
||||
const int LED_FWD = 11;
|
||||
const int LED_BWD = 12;
|
||||
//CAMERA CONSTANTS
|
||||
const int BUTTON = 7;
|
||||
const int LED_FWD = 8;
|
||||
const int LED_BWD = 9;
|
||||
|
||||
const int PROJECTOR_MOMENT = 240;
|
||||
const int PROJECTOR_STEPS = 25;
|
||||
|
||||
//VARIABLES
|
||||
volatile int projectorFrame = -1;
|
||||
|
@ -54,7 +50,7 @@ volatile bool direction = true;
|
|||
volatile long start;
|
||||
|
||||
McopySerial mcopy;
|
||||
McopyProjector projector(takeup, feed, TAKEUP_SETTING_A, TAKEUP_SETTING_B, FEED_SETTING_A, FEED_SETTING_B);
|
||||
McopyProjector projector(takeup, feed);
|
||||
|
||||
void setup () {
|
||||
pins();
|
||||
|
@ -82,11 +78,6 @@ void pins () {
|
|||
pinMode(LED_BWD, OUTPUT);
|
||||
pinMode(BUTTON, INPUT_PULLUP);
|
||||
|
||||
pinMode(TAKEUP_SETTING_A, OUTPUT);
|
||||
pinMode(TAKEUP_SETTING_B, OUTPUT);
|
||||
pinMode(FEED_SETTING_A, OUTPUT);
|
||||
pinMode(FEED_SETTING_B, OUTPUT);
|
||||
|
||||
digitalWrite(LED_FWD, LOW);
|
||||
digitalWrite(LED_BWD, LOW);
|
||||
}
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "mcopy",
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "mcopy",
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"arduino": "file:app/lib/arduino",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "mcopy",
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"description": "Small gauge film optical printer platform",
|
||||
"main": "build.js",
|
||||
"directories": {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "1.8.14",
|
||||
"version": "1.8.15",
|
||||
"ext_port": 1111,
|
||||
"profiles": {
|
||||
"mcopy": {
|
||||
|
|
|
@ -348,7 +348,7 @@ module debug () {
|
|||
|
||||
}
|
||||
|
||||
PART = "gate_keyx";
|
||||
PART = "gate_key";
|
||||
|
||||
if (PART == "gate_key") {
|
||||
gate_key();
|
||||
|
|
Loading…
Reference in New Issue