-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
see CHANGELOG in S4E
- Loading branch information
SebCanet
committed
Jul 3, 2020
1 parent
e1dd8fc
commit 2012aa4
Showing
109 changed files
with
784 additions
and
9,009 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
/* Arduino CLI control | ||
/** | ||
* @license | ||
* Copyright 2020 Sébastien CANET | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
const {ipcRenderer} = require('electron'); | ||
|
||
/** | ||
* @fileoverview Arduino CLI control. | ||
* @author [email protected] (Sébastien CANET) | ||
*/ | ||
|
||
const {ipcRenderer} = require('electron'); | ||
const {exec} = require('child_process'); | ||
const fs = require('fs-extra'); | ||
|
||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
/* fake IDE code Arduino | ||
** boardMenu: Arduino boards list | ||
** serialMenu: serial port list | ||
** serialConnectButton: open modal with serial console | ||
** verifyButton: verify and compile in hex file | ||
** uploadButton: upload hex file in Arduino board | ||
/** | ||
* @license | ||
* Copyright 2020 Sébastien CANET | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/** | ||
* @fileoverview Utility functions for handling typed variables. | ||
* fake IDE code Arduino | ||
* boardMenu: Arduino boards list | ||
* serialMenu: serial port list | ||
* serialConnectButton: open modal with serial console | ||
* verifyButton: verify and compile in hex file | ||
* uploadButton: upload hex file in Arduino board | ||
* @author [email protected] (Sébastien CANET) | ||
*/ | ||
|
||
const {ipcRenderer} = require('electron'); | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
var remote = require('electron').remote; | ||
/** | ||
* @license | ||
* Copyright 2020 Sébastien CANET | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/** | ||
* @fileoverview Block factory control. | ||
* @author [email protected] (Sébastien CANET) | ||
*/ | ||
|
||
var remote = require('electron').remote; | ||
var {ipcRenderer} = require("electron"); | ||
var fs = require('fs'); | ||
|
||
|
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.
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.
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.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
// Modules to control application life and create native browser window | ||
/** | ||
* @license | ||
* Copyright 2020 Sébastien CANET | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/** | ||
* @fileoverview Modules to control application life and create native browser window. | ||
* @author [email protected] (Sébastien CANET) | ||
*/ | ||
|
||
const { | ||
app, | ||
BrowserWindow, | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"name": "S4E", | ||
"version": "0.7.0", | ||
"version": "0.7.2", | ||
"description": "Studio4Education is a web-based visual programming editor for [STmicroelectronics boards](https://www.st.com/content/st_com/en.html)", | ||
"license": "GPL-3.0", | ||
"license": "BSD-3-Clause", | ||
"author": "Sebastien Canet <[email protected]>", | ||
"main": "main.js", | ||
"keywords": [ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
var {ipcRenderer} = require("electron"); | ||
/** | ||
* @license | ||
* Copyright 2020 Sébastien CANET | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
/** | ||
* @fileoverview Utility functions for handling serial communication & plotter. | ||
* @author [email protected] (Sébastien CANET) | ||
*/ | ||
|
||
var {ipcRenderer} = require("electron"); | ||
var {dialog} = require("electron").remote; | ||
var fs = require('fs-extra'); | ||
|
||
|
@@ -40,12 +51,14 @@ window.addEventListener('load', function load(event) { | |
connexion = false; | ||
smoothieChart.stop(); | ||
} else { | ||
SerialPortToMonitor = new SerialPort(comPortToUse, { | ||
let SerialPortToMonitor = new SerialPort(comPortToUse, { | ||
autoOpen: false, | ||
parser: SerialPort.parsers.readline('\n'), | ||
baudRate: baud | ||
}); | ||
const parser = new Readline({ | ||
delimiter: '\n' | ||
}); | ||
// const parser = new Readline({ | ||
// delimiter: '\n' | ||
// }); | ||
SerialPortToMonitor.pipe(parser); | ||
document.getElementById('btn_serialConnect').innerHTML = MSG['serial_btn_stop']; | ||
document.getElementById('btn_serialSend').disabled = false; | ||
|
@@ -75,18 +88,18 @@ window.addEventListener('load', function load(event) { | |
} | ||
] | ||
}, | ||
function (result) { | ||
var code = document.getElementById('fenetre_term').innerHTML | ||
code = code.split('<br>').join('\n') | ||
if (result === null) { | ||
return | ||
} else { | ||
fs.writeFile(result, code, function (err) { | ||
if (err) | ||
return console.log(err) | ||
}) | ||
} | ||
function (result) { | ||
var code = document.getElementById('fenetre_term').innerHTML | ||
code = code.split('<br>').join('\n') | ||
if (result === null) { | ||
return | ||
} else { | ||
fs.writeFile(result, code, function (err) { | ||
if (err) | ||
return console.log(err) | ||
}) | ||
} | ||
}) | ||
}; | ||
document.getElementById('btn_serialChart').onclick = function () { | ||
if (!graph) { | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
sketchbook/libraries/AccelStepper/examples/AFMotor_ConstantSpeed/AFMotor_ConstantSpeed.pde
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
sketchbook/libraries/AccelStepper/examples/AFMotor_MultiStepper/AFMotor_MultiStepper.pde
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
sketchbook/libraries/AccelStepper/examples/Blocking/Blocking.pde
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
sketchbook/libraries/AccelStepper/examples/Bounce/Bounce.pde
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
sketchbook/libraries/AccelStepper/examples/ConstantSpeed/ConstantSpeed.pde
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.