Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebski123 committed Nov 23, 2021
1 parent 8e8b3e7 commit 0c78f07
Show file tree
Hide file tree
Showing 32 changed files with 4,981 additions and 190 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vscode/
*.fcstd1
**/desktop.ini
2 changes: 1 addition & 1 deletion Indkøbs-liste.gsheet
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"url": "https://docs.google.com/open?id=1bJGVzlMOi4lhCe_lowgES_lc6zuVtLZEZH2xLKSR2NM", "doc_id": "1bJGVzlMOi4lhCe_lowgES_lc6zuVtLZEZH2xLKSR2NM", "email": "sebthomle@gmail.com"}
{"":"WARNING! DO NOT EDIT THIS FILE! ANY CHANGES MADE WILL BE LOST!","doc_id":"1bJGVzlMOi4lhCe_lowgES_lc6zuVtLZEZH2xLKSR2NM","email":"sebthomle@gmail.com","resource_key":"","url":"https://docs.google.com/open?id=1bJGVzlMOi4lhCe_lowgES_lc6zuVtLZEZH2xLKSR2NM"}
8 changes: 7 additions & 1 deletion Nyttige Links.gdoc
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{"url": "https://docs.google.com/open?id=1oN_BuAAReJqHGiVTUNumqnsOz3ZYzIR79be_z8TzHBY", "doc_id": "1oN_BuAAReJqHGiVTUNumqnsOz3ZYzIR79be_z8TzHBY", "email": "sebthomle@gmail.com"}
{
// WARNING! DO NOT EDIT THIS FILE! ANY CHANGES MADE WILL BE LOST!
"doc_id" : "1oN_BuAAReJqHGiVTUNumqnsOz3ZYzIR79be_z8TzHBY",
"email" : "sebthomle@gmail.com",
"resource_key" : "",
"url" : "https://docs.google.com/open?id=1oN_BuAAReJqHGiVTUNumqnsOz3ZYzIR79be_z8TzHBY"
}
49 changes: 49 additions & 0 deletions TestMatrixDisplay/TestMatrixDisplay.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
//We always have to include the library
#include "LedControl.h"

/*
Now we need a LedControl to work with.
***** These pin numbers will probably not work with your hardware *****
pin 12 is connected to the DataIn
pin 11 is connected to the CLK
pin 10 is connected to LOAD
We have only a single MAX72XX.
*/
LedControl lc=LedControl(14,16,15,4);

/* we always wait a bit between updates of the display */
unsigned long delaytime=100;

void setup() {

Serial.begin(9600);
/*
The MAX72XX is in power-saving mode on startup,
we have to do a wakeup call
*/
lc.shutdown(0,false);
/* Set the brightness to a medium values */
lc.setIntensity(0,8);
/* and clear the display */
lc.clearDisplay(0);
}

/*
This function will light up every Led on the matrix.
*/
void single() {
for(int row=0;row<8;row++) {
for(int col=0;col<8;col++) {
delay(delaytime);
lc.setLed(0,row,col,true);
Serial.print(row);
Serial.print("\t");
Serial.println(col);
delay(delaytime);
}
}
}

void loop() {
single();
}
73 changes: 73 additions & 0 deletions TestMatrixDisplays/TestMatrixDisplays.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//We always have to include the library
#include "LedControl.h"



int numOfBoards = 3;
/*
Now we need a LedControl to work with.
***** These pin numbers will probably not work with your hardware *****
pin 12 is connected to the DataIn
pin 11 is connected to the CLK
pin 10 is connected to LOAD
We have only a single MAX72XX.
*/
LedControl lc=LedControl(14,16,15,numOfBoards);

/* we always wait a bit between updates of the display */
unsigned long delaytime=100/numOfBoards;


void single(bool mode);

void setup() {

Serial.begin(9600);


for (int i = 0; i < numOfBoards; i++){
/*
The MAX72XX is in power-saving mode on startup,
we have to do a wakeup call
*/
lc.shutdown(i,false);
/* Set the brightness to a medium values */
lc.setIntensity(i,8);
/* and clear the display */
lc.clearDisplay(i);
}

Serial.print("board");
Serial.print("\t");
Serial.print("row");
Serial.print("\t");
Serial.println("col");
}

/*
This function will light up every Led on the matrix.
*/
void single(bool mode) {
for(int board=0;board<numOfBoards;board++){
for(int row=0;row<8;row++) {
for(int col=0;col<8;col++) {
delay(delaytime);
lc.setLed(board,row,col,mode);
Serial.print(board);
Serial.print("\t");
Serial.print(row);
Serial.print("\t");
Serial.println(col);
delay(delaytime);
}
}
}
}

void loop() {
lc.setLed(0,0,0,true);
delay(500);
lc.setLed(0,0,0,false);
delay(500);

}
Binary file added UR.FCStd
Binary file not shown.
20 changes: 20 additions & 0 deletions UR_asm_hierarchy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>A2P assembly hierarchy visualization</title>
</head>
<body>
<div class="mermaid">
graph TD
UR_Body_001(UR_Body_001<br>*FIXED*) -- plane --> UR_Glass_001
UR_Body_001(UR_Body_001<br>*FIXED*) -- axial --> UR_Glass_001
UR_Body_001(UR_Body_001<br>*FIXED*) -- axial --> UR_Glass_001
UR_Glass_001
</div>
<script src="https://unpkg.com/mermaid@7.1.2/dist/mermaid.js"></script>
<script>
mermaid.initialize({startOnLoad: true});
</script>
</body></html>
810 changes: 810 additions & 0 deletions wordclock-master/faceplate/OLD/face_07nov.ai

Large diffs are not rendered by default.

651 changes: 651 additions & 0 deletions wordclock-master/faceplate/OLD/face_07nov2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
870 changes: 870 additions & 0 deletions wordclock-master/faceplate/OLD/face_11sep2_vector.ai

Large diffs are not rendered by default.

Binary file not shown.
948 changes: 948 additions & 0 deletions wordclock-master/faceplate/OLD/face_11sep_vector.ai

Large diffs are not rendered by default.

Binary file not shown.
Binary file added wordclock-master/faceplate/OLD/rect2781.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wordclock-master/faceplate/OLD/rect27812.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
643 changes: 643 additions & 0 deletions wordclock-master/faceplate/face_07nov2.ai

Large diffs are not rendered by default.

Binary file added wordclock-master/faceplate/face_07nov2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wordclock-master/faceplate/face_07nov2.psd
Binary file not shown.
658 changes: 658 additions & 0 deletions wordclock-master/faceplate/face_07nov2ForCutting.ai

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,22 @@
{
"name": "Win32",
"includePath": [
"${workspaceFolder}/**"
"C:\\Users\\sebth\\AppData\\Local\\Arduino15\\packages\\MiniCore\\hardware\\avr\\2.0.5\\**",
"D:\\Program Files (x86)\\Arduino\\tools\\**",
"D:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\**",
"C:\\Users\\sebth\\AppData\\Local\\Arduino15\\packages\\esp8266\\tools\\**",
"C:\\Users\\sebth\\AppData\\Local\\Arduino15\\packages\\esp8266\\hardware\\esp8266\\2.5.2\\**",
"${workspaceFolder}/**",
"C:\\Users\\sebth\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.3\\**",
"C:\\Users\\sebth\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\**"
],
"defines": [
"_DEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "msvc-x64"
"intelliSenseMode": "msvc-x64",
"forcedInclude": []
}
],
"version": 4
Expand Down
Binary file not shown.
Binary file not shown.
10 changes: 4 additions & 6 deletions wordclock-master/firmware/pijuanaclock/brightness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ void setBrightnessAuto()

// Read ambient light sensor
int lightReading = analogRead(PIN_LDR); // 0 to 1023
Serial.print(F("lightReading="));Serial.println(lightReading);
//Serial.print(F("lightReading="));Serial.println(lightReading);
lightReading += currentHysteresis; // Add the current hysteresis value to the reading (this has the same effect as moving the thresholds)

Serial.print(F("lightReading+hyster="));Serial.println(lightReading);
//Serial.print(F("lightReading+hyster="));Serial.println(lightReading);
lightReading = constrain(lightReading, LOWER_BOUND, UPPER_BOUND);
Serial.print(F("constrained lightReading="));Serial.println(lightReading);
//Serial.print(F("constrained lightReading="));Serial.println(lightReading);

// lightReading -> bright mapping
int bright = map(lightReading, LOWER_BOUND, UPPER_BOUND, 0, 15);
Serial.print(F("bright="));Serial.println(bright);
//Serial.print(F("bright="));Serial.println(bright);

if (bright != brightness)
{
Expand All @@ -60,5 +60,3 @@ void setBrightnessAuto()
setBrightness(bright);
}
}


4 changes: 2 additions & 2 deletions wordclock-master/firmware/pijuanaclock/display.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
#include "LedControl.h" // MAX7219 - LED matrix drivers - http://playground.arduino.cc/Main/LedControl

// Pins to led drivers
#define pinData 14 // A0 (used as digital pin)
#define pinLoad 15 // A1 (used as digital pin)
#define pinData 8 // A0 (used as digital pin)
#define pinLoad 7 // A1 (used as digital pin)
#define pinClock 16 // A2 (used as digital pin)


Expand Down
Loading

0 comments on commit 0c78f07

Please sign in to comment.