Skip to content

Commit

Permalink
some clean Up
Browse files Browse the repository at this point in the history
  • Loading branch information
noemu committed Jul 15, 2018
1 parent 6ebdd12 commit dbbf46c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7,841 deletions.
7,829 changes: 0 additions & 7,829 deletions main/hekate_ctcaer_3.0.h

This file was deleted.

11 changes: 3 additions & 8 deletions main/main.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@


#include <FlashAsEEPROM.h>
#include <Arduino.h>

#include "fuseegelee.h"
#include "trinketLed.h"

// Contains fuseeBin and FUSEE_BIN_LENGTH
#include "hekate_ctcaer_3.0.h"
// Contains fuseeBin and FUSEE_BIN_SIZE
#include "sxLoader.h"


Expand All @@ -15,16 +12,14 @@ void setup()
ledInit();
if (usbInit() == -1) sleepDeep(-1);

int currentTime = 0;
while (!searchTegraDevice())
{
currentTime = millis();
ledBlink("orange", 1, 200);
}

setupTegraDevice();

sendPayload(sx_loader, SX_LOADER_SIZE);
sendPayload(fuseeBin, FUSEE_BIN_SIZE);

launchPayload();

Expand Down
6 changes: 2 additions & 4 deletions main/sxLoader.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <Arduino.h>

const int SX_LOADER_SIZE = 27748;
const PROGMEM byte sx_loader[SX_LOADER_SIZE] = {
const int FUSEE_BIN_SIZE = 27748;
const PROGMEM byte fuseeBin[FUSEE_BIN_SIZE] = {
0x07, 0x00, 0x00, 0xea, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xdf, 0xf0, 0x2f, 0xe3, 0x24, 0xd0, 0x9f, 0xe5, 0x24, 0x00, 0x9f, 0xe5,
Expand Down Expand Up @@ -1738,4 +1737,3 @@ const PROGMEM byte sx_loader[SX_LOADER_SIZE] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xba, 0xad, 0xf0, 0x0d,
};

2 changes: 2 additions & 0 deletions main/trinketLed.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Adafruit_DotStar strip = Adafruit_DotStar(1, INTERNAL_DS_DATA, INTERNAL_DS_CLK,

void ledInit() {
strip.begin();
strip.setPixelColor(0, 0, 0, 0);
strip.show();
}

void setLedColor(const char color[]) {
Expand Down
Binary file removed payloads/hekate_ctcaer_2.3.bin
Binary file not shown.
Binary file removed payloads/hekate_ctcaer_3.0.bin
Binary file not shown.
Binary file removed payloads/hekate_lfs.bin
Binary file not shown.

0 comments on commit dbbf46c

Please sign in to comment.