-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Console Functionality #4
Open
benPark20
wants to merge
25
commits into
AlfredoSystems:main
Choose a base branch
from
benPark20:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e0cad2c
Add Terminal Container
benPark20 0b3dcd7
Update CNAME
benPark20 0ee4a1f
Delete CNAME
benPark20 615bf5e
Update styles.css
benPark20 54845ae
Update styles.css
benPark20 d74cbd7
Editedindex.html and styles.css
benPark20 1de08ce
terminal support test 1
benPark20 816a793
Update index.html
benPark20 7b18f22
Change Terminal to Console\
benPark20 2317128
terminal test 2
benPark20 894d59a
terminal test 3
benPark20 fe5c172
terminal test 4
benPark20 c287835
terminal test 5
benPark20 ac8cec1
terminal test 6
benPark20 9256865
terminal test 7
benPark20 2d56f1d
change one number
benPark20 45bf7b8
added more characters to terminal
benPark20 b54ab24
fixed padding
benPark20 7257371
terminal test 8
benPark20 5b49a4a
merged and added auto scrolling
benPark20 5f04a44
Update index.js
benPark20 8869958
Merge branch 'main' into main
benPark20 18a670c
Update README.md
benPark20 a761a48
Update README.md
benPark20 49c94ac
Update index.html
benPark20 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,127 +1,167 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';"> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> | ||
<meta name="viewport" | ||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
http-equiv="Content-Security-Policy" | ||
content="script-src 'self' 'unsafe-inline';" | ||
/> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" | ||
/> | ||
|
||
<title>PestoLink-Online</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
|
||
<body> | ||
<link rel="stylesheet" href="styles.css" /> | ||
</head> | ||
|
||
<body> | ||
<div id="user-container"> | ||
<div class="container mobile-only" id="mobile-joystick"> | ||
<div id="joystick-background"> | ||
<div id="joystick-container"></div> | ||
</div> | ||
</div> | ||
|
||
<div class="container desktop-only" id="desktop-axis"> | ||
<div class="slider-non">Axis 0</div> | ||
<div class="slider-non" id="axisValue0">127</div> | ||
<div class="slider-bar" id="bar0"></div> | ||
|
||
<div class="slider-non">Axis 1</div> | ||
<div class="slider-non" id="axisValue1">127</div> | ||
<div class="slider-bar" id="bar1"></div> | ||
|
||
<div class="slider-non">Axis 2</div> | ||
<div class="slider-non" id="axisValue2">127</div> | ||
<div class="slider-bar" id="bar2"></div> | ||
|
||
<div class="slider-non">Axis 3</div> | ||
<div class="slider-non" id="axisValue3">127</div> | ||
<div class="slider-bar" id="bar3"></div> | ||
<div class="container mobile-only" id="mobile-joystick"> | ||
<div id="joystick-background"> | ||
<div id="joystick-container"></div> | ||
</div> | ||
</div> | ||
|
||
<div class="container desktop-only" id="desktop-axis"> | ||
<div class="slider-non">Axis 0</div> | ||
<div class="slider-non" id="axisValue0">127</div> | ||
<div class="slider-bar" id="bar0"></div> | ||
|
||
<div class="slider-non">Axis 1</div> | ||
<div class="slider-non" id="axisValue1">127</div> | ||
<div class="slider-bar" id="bar1"></div> | ||
|
||
<div class="slider-non">Axis 2</div> | ||
<div class="slider-non" id="axisValue2">127</div> | ||
<div class="slider-bar" id="bar2"></div> | ||
|
||
<div class="slider-non">Axis 3</div> | ||
<div class="slider-non" id="axisValue3">127</div> | ||
<div class="slider-bar" id="bar3"></div> | ||
</div> | ||
|
||
<div class="container" id="interface"> | ||
<button id="ble-button">🔗</button> | ||
<button id="telemetry">no data</button> | ||
<button id="ble-status">not connected</button> | ||
<div id="settings-grid"> | ||
<div class="settings-label">Mobile Layout</div> | ||
|
||
<div class="settings-toggle"> | ||
<div id="toggle-mobile-layout" class="toggle-round"> | ||
<div class="toggle-nub"></div> | ||
</div> | ||
</div> | ||
|
||
<div class="container" id="interface"> | ||
<button id="ble-button">🔗</button> | ||
<button id="telemetry">no data</button> | ||
<button id="ble-status">not connected</button> | ||
|
||
<div id="settings-grid"> | ||
|
||
<div class="settings-label">Mobile Layout</div> | ||
|
||
<div class="settings-toggle"> | ||
<div id="toggle-mobile-layout" class="toggle-round"><div class="toggle-nub"></div></div> | ||
</div> | ||
|
||
<div class="settings-label help-row">Override axes <br> with WASD</div> | ||
|
||
<div class="settings-toggle help-row"> | ||
<div id="toggle-keyboard-style" class="toggle-round"><div class="toggle-nub"></div></div> | ||
</div> | ||
<div class="settings-label help-row"> | ||
Override axes <br /> | ||
with WASD | ||
</div> | ||
|
||
<div class="settings-label help-row">Help/Info!</div> | ||
<div class="settings-toggle help-row"> | ||
<div id="toggle-keyboard-style" class="toggle-round"> | ||
<div class="toggle-nub"></div> | ||
</div> | ||
</div> | ||
|
||
<div class="settings-toggle help-row"> | ||
<div id="toggle-info" class="toggle-round"><div class="toggle-nub"></div></div> | ||
</div> | ||
<div class="settings-label help-row">Help/Info!</div> | ||
|
||
<div class="settings-toggle help-row"> | ||
<div id="toggle-info" class="toggle-round"> | ||
<div class="toggle-nub"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container mobile-only" id="mobile-button"> | ||
<div></div> | ||
<button id="button-3">3</button> | ||
<div></div> | ||
<button id="button-2">2</button> | ||
<div></div> | ||
<button id="button-1">1</button> | ||
<div></div> | ||
<button id="button-0">0</button> | ||
<div></div> | ||
</div> | ||
|
||
<div class="container desktop-only" id="desktop-button"> | ||
<button id="buttonDesktop0">0</button> | ||
<button id="buttonDesktop1">1</button> | ||
<button id="buttonDesktop2">2</button> | ||
<button id="buttonDesktop3">3</button> | ||
<button id="buttonDesktop4">4</button> | ||
<button id="buttonDesktop5">5</button> | ||
<button id="buttonDesktop6">6</button> | ||
<button id="buttonDesktop7">7</button> | ||
<button id="buttonDesktop8">8</button> | ||
<button id="buttonDesktop9">9</button> | ||
<button id="buttonDesktop10">10</button> | ||
<button id="buttonDesktop11">11</button> | ||
<button id="buttonDesktop12">12</button> | ||
<button id="buttonDesktop13">13</button> | ||
<button id="buttonDesktop14">14</button> | ||
<button id="buttonDesktop15">15</button> | ||
</div> | ||
</div> | ||
|
||
<div class="container mobile-only" id="mobile-button"> | ||
<div></div> | ||
<button id="button-3">3</button> | ||
<div></div> | ||
<button id="button-2">2</button> | ||
<div></div> | ||
<button id="button-1">1</button> | ||
<div></div> | ||
<button id="button-0">0</button> | ||
<div></div> | ||
</div> | ||
|
||
<div class="container desktop-only" id="desktop-button"> | ||
<button id="buttonDesktop0">0</button> | ||
<button id="buttonDesktop1">1</button> | ||
<button id="buttonDesktop2">2</button> | ||
<button id="buttonDesktop3">3</button> | ||
<button id="buttonDesktop4">4</button> | ||
<button id="buttonDesktop5">5</button> | ||
<button id="buttonDesktop6">6</button> | ||
<button id="buttonDesktop7">7</button> | ||
<button id="buttonDesktop8">8</button> | ||
<button id="buttonDesktop9">9</button> | ||
<button id="buttonDesktop10">10</button> | ||
<button id="buttonDesktop11">11</button> | ||
<button id="buttonDesktop12">12</button> | ||
<button id="buttonDesktop13">13</button> | ||
<button id="buttonDesktop14">14</button> | ||
<button id="buttonDesktop15">15</button> | ||
</div> | ||
<div | ||
id="terminal-container" | ||
style="height: 25%; width: 80%; overflow: auto" | ||
> | ||
<p id="terminal">PestoLink Console:</p> | ||
</div> | ||
|
||
<div id="info-container"> | ||
<p> | ||
<u>Embedded Platform Support</u> | ||
<br> <a href="https://github.com/AlfredoSystems/PestoLink-MicroPython">PestoLink</a> currently supports two embedded platforms, MicroPython and Arduino | ||
(designed for <a href="https://www.sparkfun.com/products/22230">RP2040 on XRP Kits</a> and <a href="https://www.alfredosys.com/products/alfredo-nou2/">ESP32</a> respectively). | ||
<br> MicroPython based robots use the module <a href="https://github.com/AlfredoSystems/PestoLink-MicroPython/tree/main">PestoLink-MicroPython</a>. | ||
,Arduino based robots use the library <a href="https://github.com/AlfredoSystems/PestoLink-Receive">PestoLink-Receive</a>. | ||
|
||
<br><br> <u>Browser Support</u> | ||
<br> PestoLink works with Google Chrome on Windows, Android, Mac, Linux, and ChromeOS. | ||
<br>On iOS very few web browsers support webBluetooth. Google Chrome has worked for some people, but <a href="https://apps.apple.com/us/app/bluefy-web-ble-browser/id1492822055">Bluefy</a> is the best option found so far. | ||
|
||
<br><br> <u>What does "Override axes with WASD" do?</u> | ||
<br> By default, keyboard data is sent seperatly from axis/button data. If you would like to drive your robot using your keyboard, | ||
you can enable this switch to override the axis/button data with keyboard input. 'WASD' wil override Axis 0 and 1, 'IJKL' will override Axis 2 and 3. | ||
'ZXCVBNM,' will overide buttons 0 through 7. | ||
|
||
<br><br> If you have any questions, feel free to reach out! ([email protected]) | ||
</p> | ||
<p> | ||
<u>Embedded Platform Support</u> | ||
<br /> | ||
<a href="https://github.com/AlfredoSystems/PestoLink-MicroPython" | ||
>PestoLink</a | ||
> | ||
currently supports two embedded platforms, MicroPython and Arduino | ||
(designed for | ||
<a href="https://www.sparkfun.com/products/22230">RP2040 on XRP Kits</a> | ||
and | ||
<a href="https://www.alfredosys.com/products/alfredo-nou2/">ESP32</a> | ||
respectively). <br /> | ||
MicroPython based robots use the module | ||
<a | ||
href="https://github.com/AlfredoSystems/PestoLink-MicroPython/tree/main" | ||
>PestoLink-MicroPython</a | ||
>. ,Arduino based robots use the library | ||
<a href="https://github.com/AlfredoSystems/PestoLink-Receive" | ||
>PestoLink-Receive</a | ||
>. | ||
|
||
<br /><br /> | ||
<u>Browser Support</u> <br /> | ||
PestoLink works with Google Chrome on Windows, Android, Mac, Linux, and | ||
ChromeOS. <br />On iOS very few web browsers support webBluetooth. | ||
Google Chrome has worked for some people, but | ||
<a | ||
href="https://apps.apple.com/us/app/bluefy-web-ble-browser/id1492822055" | ||
>Bluefy</a | ||
> | ||
is the best option found so far. | ||
|
||
<br /><br /> | ||
<u>What does "Override axes with WASD" do?</u> <br /> | ||
By default, keyboard data is sent seperatly from axis/button data. If | ||
you would like to drive your robot using your keyboard, you can enable | ||
this switch to override the axis/button data with keyboard input. 'WASD' | ||
wil override Axis 0 and 1, 'IJKL' will override Axis 2 and 3. 'ZXCVBNM,' | ||
will overide buttons 0 through 7. | ||
|
||
<br /><br /> | ||
If you have any questions, feel free to reach out! ([email protected]) | ||
</p> | ||
</div> | ||
|
||
<div id="hack-spacer"></div> | ||
<script src="index.js"></script> | ||
</body> | ||
|
||
</html> | ||
</body> | ||
</html> |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the terminal-container div is the only real change to this file.