Skip to content

Commit

Permalink
update and add feature
Browse files Browse the repository at this point in the history
see CHANGELOG in S4E
  • Loading branch information
SebCanet committed Jul 3, 2020
1 parent e1dd8fc commit 2012aa4
Show file tree
Hide file tree
Showing 109 changed files with 784 additions and 9,009 deletions.
13 changes: 11 additions & 2 deletions CLI_functions.js
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');

Expand Down
21 changes: 15 additions & 6 deletions IDE_functions.js
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');
Expand Down
13 changes: 12 additions & 1 deletion blocksFactory.js
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');

Expand Down
Binary file added documentation/Image 001.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 documentation/Image 002.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 documentation/Image 003.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 documentation/Image 004.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 documentation/Image 005.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 documentation/Image 006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion main.js
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,
Expand Down
4 changes: 2 additions & 2 deletions package.json
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": [
Expand Down
45 changes: 29 additions & 16 deletions serialMonitor.js
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');

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down
17 changes: 0 additions & 17 deletions sketchbook/libraries/AccelStepper/LICENSE

This file was deleted.

22 changes: 0 additions & 22 deletions sketchbook/libraries/AccelStepper/README.md

This file was deleted.

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions sketchbook/libraries/AccelStepper/examples/Blocking/Blocking.pde

This file was deleted.

29 changes: 0 additions & 29 deletions sketchbook/libraries/AccelStepper/examples/Bounce/Bounce.pde

This file was deleted.

This file was deleted.

Loading

0 comments on commit 2012aa4

Please sign in to comment.