Skip to content

Commit

Permalink
font, hex and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
cparrapa committed Mar 14, 2021
1 parent ee86780 commit 9d16a87
Show file tree
Hide file tree
Showing 33 changed files with 1,497 additions and 4,559 deletions.
8 changes: 4 additions & 4 deletions resources/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ window.addEventListener('load', function load(event) {
document.getElementById('versionapp').textContent = " OttoBlockly v" + appVersion
function uploadOK(){
messageDiv.style.color = '#009000'
messageDiv.innerHTML = Blockly.Msg.upload + ': OK' + quitDiv
messageDiv.innerHTML = Blockly.Msg.upload + ': OK' + quitDiv
}
$('#btn_forum').on('click', function(){
shell.openExternal('http://builders.ottodiy.com/')
Expand Down Expand Up @@ -157,7 +157,7 @@ window.addEventListener('load', function load(event) {
return
}
messageDiv.style.color = '#009000'
messageDiv.innerHTML = Blockly.Msg.check + ': OK' + quitDiv
messageDiv.innerHTML = Blockly.Msg.check + ': OK' + quitDiv
})
} else {
//fs.writeFile('./compilation/arduino/ino/sketch.ino', data, function(err){
Expand Down Expand Up @@ -197,7 +197,7 @@ window.addEventListener('load', function load(event) {
}

messageDiv.style.color = '#009000'
messageDiv.innerHTML = Blockly.Msg.check + ': OK' + quitDiv
messageDiv.innerHTML = Blockly.Msg.check + ': OK' + quitDiv
})


Expand Down Expand Up @@ -241,7 +241,7 @@ window.addEventListener('load', function load(event) {
}

messageDiv.style.color = '#009000'
messageDiv.innerHTML = Blockly.Msg.check + ': OK' + quitDiv
messageDiv.innerHTML = Blockly.Msg.check + ': OK' + quitDiv

/*
exec( cmd, {cwd:'./compilation/arduino'}, function(err, stdout, stderr){
Expand Down
7 changes: 5 additions & 2 deletions www/css/blocklino.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ html,body {
}
body {
background-color: #2d2d64;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-family: 'Nunito', sans-serif;
margin: 0

}

#div_var {
Expand Down Expand Up @@ -63,6 +62,7 @@ body {
}
#title {
position: fixed;
font-weight: bold;
top: 0px;
left: 6px;
color:white
Expand Down Expand Up @@ -160,6 +160,8 @@ body {
opacity: 0.9
}
#content_code {
font-family: 'Nunito', sans-serif;
font-weight: bold;
font-size: 16px;
position: absolute;
border: 1px solid #727272;
Expand Down Expand Up @@ -194,6 +196,7 @@ body {
}
.blocklyToolboxDiv {
background-color: #f2f2f2 !important;

font-weight: bold;
margin-left: 5px;
width: 210px;
Expand Down
4 changes: 2 additions & 2 deletions www/css/bootstrap.min.3.3.6.css

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions www/examples/avoid/distance.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<xml xmlns="http://www.w3.org/1999/xhtml">
<toolbox>toolbox_arduino_all</toolbox>
<block type="base_setup_loop" id="5z;VHZm0^aG5L!uH9jd#" x="-61" y="107">
<statement name="DO">
<block type="otto9_home" id="`ru!;k2?[ACoO^*/]5m`">
<next>
<block type="serial_init" id="=n;5RsGh~kc6O`Sob1a6">
<field name="PINBAUDIOS">9600</field>
</block>
</next>
</block>
</statement>
<statement name="LOOP">
<block type="serial_print" id="*p,J5gA%qN5eNaA|1w$m">
<value name="CONTENT">
<shadow type="text" id="4@S!lvG7`NR1Qc:_r$7q">
<field name="TEXT">Ultrasonic sensor reading:</field>
</shadow>
</value>
<next>
<block type="serial_print" id="#aQK6U,/yu7wboD3ii~%">
<value name="CONTENT">
<shadow type="text" id="8E7%8t(oH=%==yi-Rd6=">
<field name="TEXT">text</field>
</shadow>
<block type="otto9_getdistance" id="I]+/]e*P42[0891wN?%{"></block>
</value>
<next>
<block type="serial_print" id="89Pc{W]aad]!mFZQVuJR">
<value name="CONTENT">
<shadow type="text" id="O[,0*eJ]/eD.]$tsFGLS">
<field name="TEXT">cm</field>
</shadow>
</value>
<next>
<block type="serial_println" id="O#0K6}DSPrMXPd0,5Rm9">
<value name="CONTENT">
<shadow type="text" id=")Wg1OnvKg?S-O~G7w]8C">
<field name="TEXT"></field>
</shadow>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</statement>
</block>
</xml>
File renamed without changes.
95 changes: 0 additions & 95 deletions www/examples/buzzer/Otto_Alarm_V9/Otto_Alarm_V9.ino

This file was deleted.

Loading

0 comments on commit 9d16a87

Please sign in to comment.