Hi Satoer, thought this would be a nice alternative to the dimming possible for Homeydash. However, I am running into errors when trying to compile your .ino (see below). Actually the first time trying something with Arduino IDE, so detailed instructions could be useful…
Arduino: 1.8.10 (Windows 10), Board: “DOIT ESP32 DEVKIT V1, 80MHz, 921600, None”
Homey-BluetoothKeyboardV0.1B:32:3: error: stray ‘\302’ in program
HomeyESP32BluetoothKeyboard/Homey-BluetoothKeyboardV0.1B.ino at master · satoer/HomeyESP32BluetoothKeyboard · GitHub
^
Homey-BluetoothKeyboardV0.1B:32:3: error: stray ‘\267’ in program
Homey-BluetoothKeyboardV0.1B:32:3: error: stray ‘\302’ in program
Homey-BluetoothKeyboardV0.1B:32:3: error: stray ‘\267’ in program
Homey-BluetoothKeyboardV0.1B:270:5: error: missing terminating ’ character
<!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-site-search-form" role="search" aria-label="Site" data-scope-type="Repository" data-scope-id="221046324" data-scoped-search-url="/satoer/HomeyESP32BluetoothKeyboard/search" data-unscoped-search-url="/search" action="/satoer/HomeyESP32BluetoothKeyboard/search" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="✓" />
^
Homey-BluetoothKeyboardV0.1B:316:7: error: stray ‘\342’ in program
<span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
^
Homey-BluetoothKeyboardV0.1B:316:7: error: stray ‘\206’ in program
Homey-BluetoothKeyboardV0.1B:316:7: error: stray ‘\265’ in program
Homey-BluetoothKeyboardV0.1B:321:7: error: stray ‘\342’ in program
<span class="d-inline-block ml-1 v-align-middle">↵</span>
^
Homey-BluetoothKeyboardV0.1B:321:7: error: stray ‘\206’ in program
Homey-BluetoothKeyboardV0.1B:321:7: error: stray ‘\265’ in program
Homey-BluetoothKeyboardV0.1B:357:7: error: stray ‘\342’ in program
<span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
^
Homey-BluetoothKeyboardV0.1B:357:7: error: stray ‘\206’ in program
Homey-BluetoothKeyboardV0.1B:357:7: error: stray ‘\265’ in program
Homey-BluetoothKeyboardV0.1B:362:7: error: stray ‘\342’ in program
<span class="d-inline-block ml-1 v-align-middle">↵</span>
^
Homey-BluetoothKeyboardV0.1B:362:7: error: stray ‘\206’ in program
Homey-BluetoothKeyboardV0.1B:362:7: error: stray ‘\265’ in program
Homey-BluetoothKeyboardV0.1B:389:7: error: stray ‘\342’ in program
<span aria-hidden="true" class="d-inline-block ml-1 v-align-middle">↵</span>
^
Homey-BluetoothKeyboardV0.1B:389:7: error: stray ‘\206’ in program
Homey-BluetoothKeyboardV0.1B:389:7: error: stray ‘\265’ in program
Homey-BluetoothKeyboardV0.1B:394:7: error: stray ‘\342’ in program
<span class="d-inline-block ml-1 v-align-middle">↵</span>
^
Homey-BluetoothKeyboardV0.1B:394:7: error: stray ‘\206’ in program
Homey-BluetoothKeyboardV0.1B:394:7: error: stray ‘\265’ in program
Homey-BluetoothKeyboardV0.1B:625:50: error: exponent has no digits
<!-- blob contrib key: blob_contributors:v21:24ee13fda47ee38db7689018609c6076 -->
^
Homey-BluetoothKeyboardV0.1B:629:11: error: missing terminating ’ character
<!-- '"` --><!-- </textarea></xmp> --></option></form><form action="/prompt_dismissals/signup" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="✓" /><input type="hidden" name="_method" value="put" /><input type="hidden" name="authenticity_token" value="NABHKZk+PHpeMhWoZ3AsTJQlH0F/0b7CU3XNl+WfFJgExzECwL1CqEWnENKOIEFGORm0A6TnJnyBYz3d693Mow==" />
^
Homey-BluetoothKeyboardV0.1B:894:70: error: stray ‘#’ in program
<td id="LC28" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WiFi.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/esp8266/Arduino</span></td>
^
Homey-BluetoothKeyboardV0.1B:898:70: error: stray ‘#’ in program
<td id="LC29" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>DNSServer.h<span class="pl-pds">></span></span></td>
^
Homey-BluetoothKeyboardV0.1B:902:70: error: stray ‘#’ in program
<td id="LC30" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WebServer.h<span class="pl-pds">></span></span></td>
^
Homey-BluetoothKeyboardV0.1B:906:70: error: stray ‘#’ in program
<td id="LC31" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WiFiManager.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/Brunez3BD/WIFIMANAGER-ESP32 //This one works with the ESP32</span></td>
^
Homey-BluetoothKeyboardV0.1B:910:70: error: stray ‘#’ in program
<td id="LC32" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>Homey.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span> (version 1.0.2) https://github.com/athombv/com.athom.homeyduino</span></td>
^
Homey-BluetoothKeyboardV0.1B:914:70: error: stray ‘#’ in program
<td id="LC33" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>BleKeyboard.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/T-vK/ESP32-BLE-Keyboard</span></td>
^
Homey-BluetoothKeyboardV0.1B:923:70: error: stray ‘#’ in program
<td id="LC35" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">controllerName</span> <span class="pl-s"><span class="pl-pds">"</span>Homey Bluetooth Keyboard<span class="pl-pds">"</span></span></td>
^
Homey-BluetoothKeyboardV0.1B:927:70: error: stray ‘#’ in program
<td id="LC36" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">releaseTime</span> <span class="pl-c1">2000</span></td>
^
Homey-BluetoothKeyboardV0.1B:944:70: error: stray ‘#’ in program
<td id="LC40" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">keyLookupTableCount</span> <span class="pl-c1">47</span></td>
^
Homey-BluetoothKeyboardV0.1B:1436:163: error: stray ‘#’ in program
<td id="LC160" class="blob-code blob-code-inner js-file-line"> bleKeyboard.<span class="pl-c1">press</span>(<span class="pl-s"><span class="pl-pds">'</span>q<span class="pl-pds">'</span></span>);</td>
^
Homey-BluetoothKeyboardV0.1B:1436:197: error: stray ‘#’ in program
<td id="LC160" class="blob-code blob-code-inner js-file-line"> bleKeyboard.<span class="pl-c1">press</span>(<span class="pl-s"><span class="pl-pds">'</span>q<span class="pl-pds">'</span></span>);</td>
^
Homey-BluetoothKeyboardV0.1B:1785:7: error: missing terminating ’ character
<!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-jump-to-line-form Box-body d-flex" action="" accept-charset="UTF-8" method="get"><input name="utf8" type="hidden" value="✓" />
^
Homey-BluetoothKeyboardV0.1B:1839:5: error: stray ‘\342’ in program
You can’t perform that action at this time.
^
Homey-BluetoothKeyboardV0.1B:1839:5: error: stray ‘\200’ in program
Homey-BluetoothKeyboardV0.1B:1839:5: error: stray ‘\231’ in program
Homey-BluetoothKeyboardV0.1B:7:1: error: expected unqualified-id before ‘<’ token
^
Homey-BluetoothKeyboardV0.1B:146:25: error: ‘up’ does not name a type
Sign up
^
Homey-BluetoothKeyboardV0.1B:173:267: error: expected unqualified-id before ‘<’ token
<a href="/features" class="py-2 lh-condensed-ultra d-block link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Features">Features <span class="Bump-link-symbol float-right text-normal text-gray-light">→</span></a>
^
Homey-BluetoothKeyboardV0.1B:186:332: error: expected unqualified-id before ‘<’ token
<li class="edge-item-fix"><a href="/customer-stories" class="py-2 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Customer stories">Customer stories <span class="Bump-link-symbol float-right text-normal text-gray-light">→</span></a></li>
^
Homey-BluetoothKeyboardV0.1B:187:308: error: expected unqualified-id before ‘<’ token
<li class="edge-item-fix"><a href="/security" class="py-2 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Security">Security <span class="Bump-link-symbol float-right text-normal text-gray-light">→</span></a></li>
^
Homey-BluetoothKeyboardV0.1B:207:299: error: expected unqualified-id before ‘<’ token
<li class="edge-item-fix"><a href="/explore" class="py-2 lh-condensed-ultra d-block link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Explore">Explore GitHub <span class="Bump-link-symbol float-right text-normal text-gray-light">→</span></a></li>
^
Homey-BluetoothKeyboardV0.1B:210:113: error: ‘contribute’ does not name a type
<h4 class="text-gray-light text-normal text-mono f5 mb-2 border-lg-top pt-lg-3">Learn & contribute</h4>
^
Homey-BluetoothKeyboardV0.1B:243:262: error: expected unqualified-id before ‘<’ token
<a href="/pricing" class="pb-2 lh-condensed-ultra d-block link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Pricing">Plans <span class="Bump-link-symbol float-right text-normal text-gray-light">→</span></a>
^
Homey-BluetoothKeyboardV0.1B:251:312: error: expected unqualified-id before ‘<’ token
<li class="edge-item-fix"><a href="/nonprofit" class="py-2 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Nonprofits">Nonprofit <span class="Bump-link-symbol float-right text-normal text-gray-light">→</span></a></li>
^
Homey-BluetoothKeyboardV0.1B:252:335: error: expected unqualified-id before ‘<’ token
<li class="edge-item-fix"><a href="https://education.github.com" class="py-2 pb-0 lh-condensed-ultra d-block no-underline link-gray-dark no-underline h5 Bump-link--hover" data-ga-click="(Logged out) Header, go to Education">Education <span class="Bump-link-symbol float-right text-normal text-gray-light">→</span></a></li>
^
Homey-BluetoothKeyboardV0.1B:413:21: error: ‘in’ does not name a type
Sign in
^
Homey-BluetoothKeyboardV0.1B:419:23: error: ‘up’ does not name a type
Sign up
^
Homey-BluetoothKeyboardV0.1B:894:149: error: expected unqualified-id before ‘<’ token
<td id="LC28" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WiFi.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/esp8266/Arduino</span></td>
^
Homey-BluetoothKeyboardV0.1B:894:187: error: expected unqualified-id before ‘<’ token
<td id="LC28" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WiFi.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/esp8266/Arduino</span></td>
^
Homey-BluetoothKeyboardV0.1B:898:149: error: expected unqualified-id before ‘<’ token
<td id="LC29" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>DNSServer.h<span class="pl-pds">></span></span></td>
^
Homey-BluetoothKeyboardV0.1B:898:192: error: expected unqualified-id before ‘<’ token
<td id="LC29" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>DNSServer.h<span class="pl-pds">></span></span></td>
^
Homey-BluetoothKeyboardV0.1B:902:149: error: expected unqualified-id before ‘<’ token
<td id="LC30" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WebServer.h<span class="pl-pds">></span></span></td>
^
Homey-BluetoothKeyboardV0.1B:902:192: error: expected unqualified-id before ‘<’ token
<td id="LC30" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WebServer.h<span class="pl-pds">></span></span></td>
^
Homey-BluetoothKeyboardV0.1B:906:149: error: expected unqualified-id before ‘<’ token
<td id="LC31" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WiFiManager.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/Brunez3BD/WIFIMANAGER-ESP32 //This one works with the ESP32</span></td>
^
Homey-BluetoothKeyboardV0.1B:906:194: error: expected unqualified-id before ‘<’ token
<td id="LC31" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>WiFiManager.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/Brunez3BD/WIFIMANAGER-ESP32 //This one works with the ESP32</span></td>
^
Homey-BluetoothKeyboardV0.1B:910:149: error: expected unqualified-id before ‘<’ token
<td id="LC32" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>Homey.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span> (version 1.0.2) https://github.com/athombv/com.athom.homeyduino</span></td>
^
Homey-BluetoothKeyboardV0.1B:910:188: error: expected unqualified-id before ‘<’ token
<td id="LC32" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>Homey.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span> (version 1.0.2) https://github.com/athombv/com.athom.homeyduino</span></td>
^
Homey-BluetoothKeyboardV0.1B:914:149: error: expected unqualified-id before ‘<’ token
<td id="LC33" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>BleKeyboard.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/T-vK/ESP32-BLE-Keyboard</span></td>
^
Homey-BluetoothKeyboardV0.1B:914:194: error: expected unqualified-id before ‘<’ token
<td id="LC33" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>BleKeyboard.h<span class="pl-pds">></span></span> <span class="pl-c"><span class="pl-c">//</span>https://github.com/T-vK/ESP32-BLE-Keyboard</span></td>
^
Homey-BluetoothKeyboardV0.1B:923:192: error: expected unqualified-id before ‘<’ token
<td id="LC35" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">controllerName</span> <span class="pl-s"><span class="pl-pds">"</span>Homey Bluetooth Keyboard<span class="pl-pds">"</span></span></td>
^
Homey-BluetoothKeyboardV0.1B:923:250: error: expected unqualified-id before ‘<’ token
<td id="LC35" class="blob-code blob-code-inner js-file-line">#<span class="pl-k">define</span> <span class="pl-en">controllerName</span> <span class="pl-s"><span class="pl-pds">"</span>Homey Bluetooth Keyboard<span class="pl-pds">"</span></span></td>
^
Homey-BluetoothKeyboardV0.1B:931:144: error: expected unqualified-id before ‘<’ token
<td id="LC37" class="blob-code blob-code-inner js-file-line"><span class="pl-k">bool</span> released = <span class="pl-c1">true</span>;</td>
^
Homey-BluetoothKeyboardV0.1B:935:145: error: expected unqualified-id before ‘<’ token
<td id="LC38" class="blob-code blob-code-inner js-file-line"><span class="pl-k">long</span> releaseTimer = <span class="pl-c1">0</span>;</td>
^
Homey-BluetoothKeyboardV0.1B:960:72: error: ‘keyLookupTable’ does not name a type
<td id="LC44" class="blob-code blob-code-inner js-file-line">} keyLookupTable[] PROGMEM = {</td>
^
Homey-BluetoothKeyboardV0.1B:1152:72: error: expected unqualified-id before ‘<’ token
<td id="LC92" class="blob-code blob-code-inner js-file-line">};</td>
^
Homey-BluetoothKeyboardV0.1B:1171:167: error: expected unqualified-id before ‘<’ token
<td id="LC96" class="blob-code blob-code-inner js-file-line">BleKeyboard <span class="pl-en">bleKeyboard</span>(<span class="pl-s"><span class="pl-pds">"</span>Homey BLE<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Homey<span class="pl-pds">"</span></span>, <span class="pl-c1">100</span>);</td>
^
Homey-BluetoothKeyboardV0.1B:1171:210: error: expected unqualified-id before ‘<’ token
<td id="LC96" class="blob-code blob-code-inner js-file-line">BleKeyboard <span class="pl-en">bleKeyboard</span>(<span class="pl-s"><span class="pl-pds">"</span>Homey BLE<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Homey<span class="pl-pds">"</span></span>, <span class="pl-c1">100</span>);</td>
^
Homey-BluetoothKeyboardV0.1B:1171:272: error: expected unqualified-id before ‘<’ token
<td id="LC96" class="blob-code blob-code-inner js-file-line">BleKeyboard <span class="pl-en">bleKeyboard</span>(<span class="pl-s"><span class="pl-pds">"</span>Homey BLE<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Homey<span class="pl-pds">"</span></span>, <span class="pl-c1">100</span>);</td>
^
Homey-BluetoothKeyboardV0.1B:1171:311: error: expected unqualified-id before ‘<’ token
<td id="LC96" class="blob-code blob-code-inner js-file-line">BleKeyboard <span class="pl-en">bleKeyboard</span>(<span class="pl-s"><span class="pl-pds">"</span>Homey BLE<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Homey<span class="pl-pds">"</span></span>, <span class="pl-c1">100</span>);</td>
^
Homey-BluetoothKeyboardV0.1B:1171:359: error: expected unqualified-id before ‘<’ token
<td id="LC96" class="blob-code blob-code-inner js-file-line">BleKeyboard <span class="pl-en">bleKeyboard</span>(<span class="pl-s"><span class="pl-pds">"</span>Homey BLE<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>Homey<span class="pl-pds">"</span></span>, <span class="pl-c1">100</span>);</td>
^
Homey-BluetoothKeyboardV0.1B:1280:72: error: expected unqualified-id before ‘<’ token
<td id="LC122" class="blob-code blob-code-inner js-file-line">}</td>
^
exit status 1
stray ‘\302’ in program
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.