Aller au contenu

Tuto relais USB avec appli Windows


Cedric02700

Messages recommandés

  • 4 années plus tard...

Bonjour à tous je ressuscite le sujet pour savoir si vous avez les drivers ASCOM qui vont avec pour le piloter depuis NINA ?

 

Merci et bonne week-end !

D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:87:44: error: stray '\302' in program
   <title>RelaisUSB/RelaisUSB.ino at master · Cedric02700/RelaisUSB</title>
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:87:45: error: stray '\267' in program
   <title>RelaisUSB/RelaisUSB.ino at master · Cedric02700/RelaisUSB</title>
                                             ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:351:16: error: missing terminating ' character
           <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="query-builder-test-form" action="" accept-charset="UTF-8" method="get">
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:371:213: error: missing terminating " character
             <input id="query-builder-test" name="query-builder-test" value="" autocomplete="off" type="text" role="combobox" spellcheck="false" aria-expanded="false" data-target="query-builder.input" data-action="
                                                                                                                                                                                                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:372:30: error: stray '#' in program
           input:query-builder#inputChange
                              ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:373:29: error: stray '#' in program
           blur:query-builder#inputBlur
                             ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:374:32: error: stray '#' in program
           keydown:query-builder#inputKeydown
                                ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:375:30: error: stray '#' in program
           focus:query-builder#inputFocus
                              ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:376:100: error: missing terminating " character
         " data-view-component="true" class="FormControl-input QueryBuilder-Input FormControl-medium" />
                                                                                                    ^~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:381:182: error: missing terminating " character
   <button role="button" id="query-builder-test-clear-button" aria-labelledby="query-builder-test-clear query-builder-test-label" data-target="query-builder.clearButton" data-action="
                                                                                                                                                                                      ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:382:36: error: stray '#' in program
                 click:query-builder#clear
                                    ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:383:36: error: stray '#' in program
                 focus:query-builder#clearButtonFocus
                                    ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:384:35: error: stray '#' in program
                 blur:query-builder#clearButtonBlur
                                   ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:385:382: error: missing terminating " character
               " variant="small" hidden="hidden" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium mr-1 px-2 py-0 d-flex flex-items-center rounded-1 color-fg-muted">    <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-x-circle-fill Button-visual">
                                                                                                                                                                                                                                                                                                                                                                                              ^~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:468:31: error: missing terminating " character
                   data-action="
                               ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:469:50: error: stray '#' in program
                     combobox-commit:query-builder#comboboxCommit
                                                  ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:470:44: error: stray '#' in program
                     mousedown:query-builder#resultsMousedown
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:471:19: error: missing terminating " character
                   "
                   ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:514:73: error: missing terminating ' character
       <div data-view-component="true" class="Overlay-body">        <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="code-search-feedback-form" data-turbo="false" action="/search/feedback" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="pcJ-N-iAQgcA9bHDTa3ydWVYZUcxdIjouFb_hwE36zlxepQBHSta_ir3ku358M7RCtKoyh-h1zUVlPyg0yjFqw" />
                                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:549:14: error: missing terminating ' character
         <!-- '"` --><!-- </textarea></xmp> --></option></form><form id="custom-scopes-dialog-form" data-turbo="false" action="/search/custom_scopes" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="sKMT1Bs59z251F2fAbxVSthGhU2D8zMmvGvMW9eD9YQgMgGAzEskohoT8_ljpuEhWQhOkvzyA040VXIViQOPww" />
              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:629:10: error: missing terminating ' character
     <!-- '"` --><!-- </textarea></xmp> --></option></form><form data-turbo="false" action="/logout" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="mcv-1ekwV0vL92n-obIIv-gBr6E0hOIORGFKdEFaJeApSW_IqiyLLLkhhyaeiYwwRRMPnzIETCERFlR5I_J3bA" />
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:829:19: error: missing terminating " character
       data-action="
                   ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:830:52: error: stray '#' in program
         command-palette-input-ready:command-palette#inputReady
                                                    ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:831:59: error: stray '#' in program
         command-palette-page-stack-updated:command-palette#updateInputScope
                                                           ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:832:37: error: stray '#' in program
         itemsUpdated:command-palette#itemsUpdated
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:833:32: error: stray '#' in program
         keydown:command-palette#onKeydown
                                ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:834:44: error: stray '#' in program
         loadingStateChanged:command-palette#loadingStateChanged
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:835:44: error: stray '#' in program
         selectedItemChanged:command-palette#selectedItemChanged
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:836:39: error: stray '#' in program
         pageFetchError:command-palette#pageFetchError
                                       ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:837:7: error: missing terminating " character
       ">
       ^~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:894:21: error: missing terminating " character
         data-action="
                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:895:48: error: stray '#' in program
           command-palette-input:command-palette#onInput
                                                ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:896:49: error: stray '#' in program
           command-palette-select:command-palette#onSelect
                                                 ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:897:50: error: stray '#' in program
           command-palette-descope:command-palette#onDescope
                                                  ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:898:50: error: stray '#' in program
           command-palette-cleared:command-palette#onInputClear
                                                  ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:899:9: error: missing terminating " character
         "
         ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:972:25: error: missing terminating " character
             data-action="
                         ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:973:42: error: stray '#' in program
               input:command-palette-input#onInput
                                          ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:974:44: error: stray '#' in program
               keydown:command-palette-input#onKeydown
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:975:13: error: missing terminating " character
             "
             ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:999:44: error: stray '#' in program
                   Type <kbd class="hx_kbd">#</kbd> to search pull requests
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1014:44: error: stray '#' in program
                   Type <kbd class="hx_kbd">#</kbd> to search issues
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1029:44: error: stray '#' in program
                   Type <kbd class="hx_kbd">#</kbd> to search discussions
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1059:44: error: stray '@' in program
                   Type <kbd class="hx_kbd">@</kbd> to search teams
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1074:44: error: stray '@' in program
                   Type <kbd class="hx_kbd">@</kbd> to search people and organizations
                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1119:31: error: stray '@' in program
                   Type author:@me to search your content
                               ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1193:15: error: stray '\342' in program
             We’ve encountered an error and some results aren't available at this time. Type a new search or try again later.
               ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1193:16: error: stray '\200' in program
             We’ve encountered an error and some results aren't available at this time. Type a new search or try again later.
                ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1193:17: error: stray '\231' in program
             We’ve encountered an error and some results aren't available at this time. Type a new search or try again later.
                 ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1193:63: error: missing terminating ' character
             We’ve encountered an error and some results aren't available at this time. Type a new search or try again later.
                                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1457:37: error: stray '#' in program
                 <kbd class="hx_kbd">#</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1467:37: error: stray '#' in program
                 <kbd class="hx_kbd">#</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1477:37: error: stray '@' in program
                 <kbd class="hx_kbd">@</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1515:37: error: stray '#' in program
                 <kbd class="hx_kbd"># author:@me</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1515:46: error: stray '@' in program
                 <kbd class="hx_kbd"># author:@me</kbd>
                                              ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1524:37: error: stray '#' in program
                 <kbd class="hx_kbd"># author:@me</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1524:46: error: stray '@' in program
                 <kbd class="hx_kbd"># author:@me</kbd>
                                              ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1533:37: error: stray '#' in program
                 <kbd class="hx_kbd"># is:pr</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1542:37: error: stray '#' in program
                 <kbd class="hx_kbd"># is:issue</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1552:37: error: stray '#' in program
                 <kbd class="hx_kbd"># is:discussion</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1562:37: error: stray '#' in program
                 <kbd class="hx_kbd"># is:project</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1571:37: error: stray '#' in program
                 <kbd class="hx_kbd"># is:open</kbd>
                                     ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1810:19: error: missing terminating ' character
             Couldn't load subscription status.&nbsp;
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1878:85: error: missing terminating ' character
       This will remove {{ repoNameWithOwner }} from the {{ listsWithCount }} that it's been added to.
                                                                                     ^~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1881:12: error: missing terminating ' character
       <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-social-confirmation-form" data-turbo="false" action="{{ confirmUrl }}" accept-charset="UTF-8" method="post">
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1892:12: error: missing terminating ' character
       <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-social-form BtnGroup-parent flex-auto js-deferred-toggler-target" data-turbo="false" action="/Cedric02700/RelaisUSB/unstar" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="bTJVI8RmuYg4cmlYEfNPhTpAwPt5cNET8eWKfXj5BT7W3b_DTOF6h4OOEDXWfReRo4w4FmwbhG9EYQa3Lv8Clg" autocomplete="off" />
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1940:12: error: missing terminating ' character
       <!-- '"` --><!-- </textarea></xmp> --></option></form><form class="js-social-form BtnGroup-parent flex-auto" data-turbo="false" action="/Cedric02700/RelaisUSB/star" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="094OVh1pR3oXOY96mFDxkvhu8wI0Xk_PUW9pcdSWtTUmufOJcdc40dIF9gyxmob1ZjokfECIJQ8nEzDK-z3FFg" autocomplete="off" />
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:2227:12: error: stray '\342' in program
     You can’t perform that action at this time.
            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:2227:13: error: stray '\200' in program
     You can’t perform that action at this time.
             ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:2227:14: error: stray '\231' in program
     You can’t perform that action at this time.
              ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:2284:25: error: stray '$' in program
       .user-mention[href$="/freemans32"] {
                         ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:7:1: error: expected unqualified-id before '<' token
 <!DOCTYPE html>
 ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:798:25: error: expected unqualified-id before '<' token
       <div>{{ message }}</div>
                         ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:927:107: error: expected constructor, destructor, or type conversion before ';' token
           <div data-target="command-palette-scope.placeholder" hidden class="color-fg-subtle">/&nbsp;&nbsp;<span class="text-semibold color-fg-default">...</span>&nbsp;&nbsp;/&nbsp;&nbsp;</div>
                                                                                                           ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:927:108: error: expected unqualified-id before '<' token
           <div data-target="command-palette-scope.placeholder" hidden class="color-fg-subtle">/&nbsp;&nbsp;<span class="text-semibold color-fg-default">...</span>&nbsp;&nbsp;/&nbsp;&nbsp;</div>
                                                                                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:927:174: error: expected constructor, destructor, or type conversion before ';' token
           <div data-target="command-palette-scope.placeholder" hidden class="color-fg-subtle">/&nbsp;&nbsp;<span class="text-semibold color-fg-default">...</span>&nbsp;&nbsp;/&nbsp;&nbsp;</div>
                                                                                                                                                                              ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:927:175: error: expected unqualified-id before '/' token
           <div data-target="command-palette-scope.placeholder" hidden class="color-fg-subtle">/&nbsp;&nbsp;<span class="text-semibold color-fg-default">...</span>&nbsp;&nbsp;/&nbsp;&nbsp;</div>
                                                                                                                                                                               ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:927:187: error: expected constructor, destructor, or type conversion before ';' token
           <div data-target="command-palette-scope.placeholder" hidden class="color-fg-subtle">/&nbsp;&nbsp;<span class="text-semibold color-fg-default">...</span>&nbsp;&nbsp;/&nbsp;&nbsp;</div>
                                                                                                                                                                                           ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:927:188: error: expected unqualified-id before '<' token
           <div data-target="command-palette-scope.placeholder" hidden class="color-fg-subtle">/&nbsp;&nbsp;<span class="text-semibold color-fg-default">...</span>&nbsp;&nbsp;/&nbsp;&nbsp;</div>
                                                                                                                                                                                            ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:936:82: error: expected constructor, destructor, or type conversion before ';' token
                 >Cedric02700<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                  ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:936:83: error: expected unqualified-id before '/' token
                 >Cedric02700<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                   ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:936:95: error: expected constructor, destructor, or type conversion before ';' token
                 >Cedric02700<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                               ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:936:96: error: expected unqualified-id before '<' token
                 >Cedric02700<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                                ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:945:80: error: expected constructor, destructor, or type conversion before ';' token
                 >RelaisUSB<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:945:81: error: expected unqualified-id before '/' token
                 >RelaisUSB<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                 ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:945:93: error: expected constructor, destructor, or type conversion before ';' token
                 >RelaisUSB<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                             ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:945:94: error: expected unqualified-id before '<' token
                 >RelaisUSB<span class="color-fg-subtle text-normal">&nbsp;&nbsp;/&nbsp;&nbsp;</span></command-palette-token>
                                                                                              ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1089:48: error: expected unqualified-id before '<' token
                   Type <kbd class="hx_kbd">&gt;</kbd> to activate command mode
                                                ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1506:41: error: expected unqualified-id before '<' token
                 <kbd class="hx_kbd">&gt;</kbd>
                                         ^
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1878:48: error: 'from' does not name a type; did you mean 'feof'?
       This will remove {{ repoNameWithOwner }} from the {{ listsWithCount }} that it's been added to.
                                                ^~~~
                                                feof
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:1878:78: error: 'that' does not name a type; did you mean 'tan'?
       This will remove {{ repoNameWithOwner }} from the {{ listsWithCount }} that it's been added to.
                                                                              ^~~~
                                                                              tan
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:2160:0: error: expected unqualified-id before '<' token
   <script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":true,"fileTree":{"Code Arduino":{"items":[{"name":"RelaisUSB.ino","path":"Code Arduino/RelaisUSB.ino","contentType":"file"}],"totalCount":1},"":{"items":[{"name":"Code Arduino","path":"Code Arduino","contentType":"directory"},{"name":"WindowsApp","path":"WindowsApp","contentType":"directory"}],"totalCount":2}},"fileTreeProcessingTime":5.209594,"foldersToFetch":[],"reducedMotionEnabled":"system","repo":{"id":180628430,"defaultBranch":"master","name":"RelaisUSB","ownerLogin":"Cedric02700","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2019-04-10T19:12:41.000+02:00","ownerAvatar":"https://avatars.githubusercontent.com/u/13807578?v=4","public":true,"private":false},"refInfo":{"name":"master","listCacheKey":"v0:1554916558.0","canEdit":true,"refType":"branch","currentOid":"a657e8172ae2fd536781382d83a96b30bcc29d3c"},"path":"Code Arduino/RelaisUSB.ino","currentUser":{"id":43719680,"login":"freemans32","userEmail":"magguyguy32@hotmail.com"},"blob":{"rawBlob":"//********** Declaration des variables de reception()  ***************************************************\r\nchar consigne[6];               //Contient la consigne mise en forme recue sur port serie\r\nchar caracteresRecus[10];       //Contient la consigne brute recue sur le port serie\r\nint index = 0;                  //Index pour mise en forme consigne        \r\nboolean consigneRecue = 0;      //Indique qu'une consigne est en attente de traitement\r\n\r\n//********** Declaration des variable pour la gestion des relais*******************************************\r\nint relaisPin[] = {2, 3, 4, 5, 6, 7, 8, 9};    //Pin ou sont connectés les relais\r\nboolean etR01 = 0;                              //Memorise l'etat des relais\r\nboolean etR02 = 0;\r\nboolean etR03 = 0;\r\nboolean etR04 = 0;\r\nboolean etR05 = 0;\r\nboolean etR06 = 0;\r\nboolean etR07 = 0;\r\nboolean etR08 = 0;\r\n\r\nvoid setup()  //********************************************************************************************\r\n{\r\n  Serial.begin(9600);                         //initialise le port serie\r\n  for(int i = 0; i \u003c 8; i++)                  //declaration des pin relais en sortie\r\n  {\r\n    pinMode(relaisPin[i], OUTPUT);\r\n    digitalWrite(relaisPin[i], HIGH);\r\n  }\r\n}\r\n\r\nvoid reception()  //********** Lit et met en forme les consignes recues sur le port serie ******************\r\n{\r\n  if(Serial.available())                           \r\n  {\r\n    index = 0;\r\n    while(Serial.available())\r\n    {\r\n      caracteresRecus[index] = Serial.read();\r\n      index++;\r\n      delay(5);\r\n    }\r\n    for(int i = 0; i \u003c= 4; i++)\r\n    {\r\n      consigne[i] = caracteresRecus[i];\r\n    }\r\n    consigneRecue = 1;\r\n  }\r\n}\r\n\r\nvoid executeConsigne()  //*********** Execute la consigne recue *********************************************\r\n{\r\n  if(strcmp(consigne, \"7toi?\") == 0)\r\n  {\r\n    Serial.print(\"7moi!\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r01on\") == 0)\r\n  {\r\n    etR01 = 1;\r\n    digitalWrite(relaisPin[0], LOW);\r\n    Serial.print(\"r01on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r01of\") == 0)\r\n  {\r\n    etR01 = 0;\r\n    digitalWrite(relaisPin[0], HIGH);\r\n    Serial.print(\"r01of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r02on\") == 0)\r\n  {\r\n    etR02 = 1;\r\n    digitalWrite(relaisPin[1], LOW);\r\n    Serial.print(\"r02on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r02of\") == 0)\r\n  {\r\n    etR02 = 0;\r\n    digitalWrite(relaisPin[1], HIGH);\r\n    Serial.print(\"r02of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r03on\") == 0)\r\n  {\r\n    etR03 = 1;\r\n    digitalWrite(relaisPin[2], LOW);\r\n    Serial.print(\"r03on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r03of\") == 0)\r\n  {\r\n    etR03 = 0;\r\n    digitalWrite(relaisPin[2], HIGH);\r\n    Serial.print(\"r03of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r04on\") == 0)\r\n  {\r\n    etR04 = 1;\r\n    digitalWrite(relaisPin[3], LOW);\r\n    Serial.print(\"r04on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r04of\") == 0)\r\n  {\r\n    etR04 = 0;\r\n    digitalWrite(relaisPin[3], HIGH);\r\n    Serial.print(\"r04of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r05on\") == 0)\r\n  {\r\n    etR05 = 1;\r\n    digitalWrite(relaisPin[4], LOW);\r\n    Serial.print(\"r05on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r05of\") == 0)\r\n  {\r\n    etR05 = 0;\r\n    digitalWrite(relaisPin[4], HIGH);\r\n    Serial.print(\"r05of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r06on\") == 0)\r\n  {\r\n    etR06 = 1;\r\n    digitalWrite(relaisPin[5], LOW);\r\n    Serial.print(\"r06on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r06of\") == 0)\r\n  {\r\n    etR06 = 0;\r\n    digitalWrite(relaisPin[5], HIGH);\r\n    Serial.print(\"r06of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r07on\") == 0)\r\n  {\r\n    etR07 = 1;\r\n    digitalWrite(relaisPin[6], LOW);\r\n    Serial.print(\"r07on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r07of\") == 0)\r\n  {\r\n    etR07 = 0;\r\n    digitalWrite(relaisPin[6], HIGH);\r\n    Serial.print(\"r07of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r08on\") == 0)\r\n  {\r\n    etR08 = 1;\r\n    digitalWrite(relaisPin[7], LOW);\r\n    Serial.print(\"r08on\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"r08of\") == 0)\r\n  {\r\n    etR08 = 0;\r\n    digitalWrite(relaisPin[7], HIGH);\r\n    Serial.print(\"r08of\"); \r\n    consigneRecue = false;\r\n  }\r\n  if(strcmp(consigne, \"12345\") == 0)\r\n  {\r\n    if(etR01 == 0) Serial.print(\"ofR01\");\r\n    if(etR01 == 1) Serial.print(\"onR01\");\r\n    delay(110);\r\n    if(etR02 == 0) Serial.print(\"ofR02\");\r\n    if(etR02 == 1) Serial.print(\"onR02\");\r\n    delay(110);\r\n    if(etR03 == 0) Serial.print(\"ofR03\");\r\n    if(etR03 == 1) Serial.print(\"onR03\");\r\n    delay(110);\r\n    if(etR04 == 0) Serial.print(\"ofR04\");\r\n    if(etR04 == 1) Serial.print(\"onR04\");\r\n    delay(110);\r\n    if(etR05 == 0) Serial.print(\"ofR05\");\r\n    if(etR05 == 1) Serial.print(\"onR05\");\r\n    delay(110);\r\n    if(etR06 == 0) Serial.print(\"ofR06\");\r\n    if(etR06 == 1) Serial.print(\"onR06\");\r\n    delay(110);\r\n    if(etR07 == 0) Serial.print(\"ofR07\");\r\n    if(etR07 == 1) Serial.print(\"onR07\");\r\n    delay(110);\r\n    if(etR08 == 0) Serial.print(\"ofR08\");\r\n    if(etR08 == 1) Serial.print(\"onR08\");\r\n    consigneRecue = 0;\r\n  }\r\n}\r\n\r\nvoid loop()  //******************************************************************************************* \r\n{\r\n  reception();                                \r\n  if(consigneRecue == 1) executeConsigne();\r\n}\r\n","colorizedLines":null,"stylingDirectives":[[{"start":0,"end":106,"cssClass":"pl-c"},{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":32,"end":89,"cssClass":"pl-c"},{"start":32,"end":34,"cssClass":"pl-c"}],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":21,"end":23,"cssClass":"pl-c1"},{"start":32,"end":84,"cssClass":"pl-c"},{"start":32,"end":34,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-k"},{"start":12,"end":13,"cssClass":"pl-c1"},{"start":32,"end":75,"cssClass":"pl-c"},{"start":32,"end":34,"cssClass":"pl-c"}],[{"start":24,"end":25,"cssClass":"pl-c1"},{"start":32,"end":86,"cssClass":"pl-c"},{"start":32,"end":34,"cssClass":"pl-c"}],[],[{"start":0,"end":107,"cssClass":"pl-c"},{"start":0,"end":2,"cssClass":"pl-c"}],[{"start":0,"end":3,"cssClass":"pl-k"},{"start":19,"end":20,"cssClass":"pl-c1"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":25,"end":26,"cssClass":"pl-c1"},{"start":28,"end":29,"cssClass":"pl-c1"},{"start":31,"end":32,"cssClass":"pl-c1"},{"start":34,"end":35,"cssClass":"pl-c1"},{"start":37,"end":38,"cssClass":"pl-c1"},{"start":40,"end":41,"cssClass":"pl-c1"},{"start":47,"end":81,"cssClass":"pl-c"},{"start":47,"end":49,"cssClass":"pl-c"}],[{"start":16,"end":17,"cssClass":"pl-c1"},{"start":48,"end":76,"cssClass":"pl-c"},{"start":48,"end":50,"cssClass":"pl-c"}],[{"start":16,"end":17,"cssClass":"pl-c1"}],[{"start":16,"end":17,"cssClass":"pl-c1"}],[{"start":16,"end":17,"cssClass":"pl-c1"}],[{"start":16,"end":17,"cssClass":"pl-c1"}],[{"start":16,"end":17,"cssClass":"pl-c1"}],[{"start":16,"end":17,"cssClass":"pl-c1"}],[{"start":16,"end":17,"cssClass":"pl-c1"}],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":10,"cssClass":"pl-en"},{"start":14,"end":108,"cssClass":"pl-c"},{"start":14,"end":16,"cssClass":"pl-c"}],[],[{"start":9,"end":14,"cssClass":"pl-c1"},{"start":15,"end":19,"cssClass":"pl-c1"},{"start":46,"end":72,"cssClass":"pl-c"},{"start":46,"end":48,"cssClass":"pl-c"}],[{"start":2,"end":5,"cssClass":"pl-k"},{"start":6,"end":9,"cssClass":"pl-k"},{"start":14,"end":15,"cssClass":"pl-c1"},{"start":21,"end":22,"cssClass":"pl-c1"},{"start":46,"end":84,"cssClass":"pl-c"},{"start":46,"end":48,"cssClass":"pl-c"}],[],[{"start":4,"end":11,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"}],[],[],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":14,"cssClass":"pl-en"},{"start":18,"end":108,"cssClass":"pl-c"},{"start":18,"end":20,"cssClass":"pl-c"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":12,"end":21,"cssClass":"pl-c1"}],[],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":9,"cssClass":"pl-k"},{"start":17,"end":26,"cssClass":"pl-c1"}],[],[{"start":22,"end":27,"cssClass":"pl-c1"},{"start":38,"end":42,"cssClass":"pl-c1"}],[{"start":6,"end":11,"cssClass":"pl-c1"}],[{"start":6,"end":11,"cssClass":"pl-c1"},{"start":12,"end":13,"cssClass":"pl-c1"}],[],[{"start":4,"end":7,"cssClass":"pl-k"},{"start":8,"end":11,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":24,"end":25,"cssClass":"pl-c1"}],[],[],[],[{"start":20,"end":21,"cssClass":"pl-c1"}],[],[],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":20,"cssClass":"pl-en"},{"start":24,"end":109,"cssClass":"pl-c"},{"start":24,"end":26,"cssClass":"pl-c"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":12,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":16,"cssClass":"pl-c1"},{"start":27,"end":28,"cssClass":"pl-c1"}],[{"start":11,"end":16,"cssClass":"pl-c1"},{"start":17,"end":24,"cssClass":"pl-s"},{"start":17,"end":18,"cssClass":"pl-pds"},{"start":23,"end":24,"cssClass":"pl-pds"}],[{"start":20,"end":25,"cssClass":"pl-c1"}],[],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":5,"end":11,"cssClass":"pl-c1"},{"start":22,"end":29,"cssClass":"pl-s"},{"start":22,"end":23,"cssClass":"pl-pds"},{"start":28,"end":29,"cssClass":"pl-pds"},{"start":34,"end":35,"cssClass":"pl-c1"}],[],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":10,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":10,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":10,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":10,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":10,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":10,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":9,"cssClass":"pl-c1"},{"start":10,"end":13,"cssClass":"pl-c1"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":4,"end":6,"cssClass":"pl-k"},{"start":16,"end":17,"cssClass":"pl-c1"},{"start":26,"end":31,"cssClass":"pl-c1"},{"start":32,"end":39,"cssClass":"pl-s"},{"start":32,"end":33,"cssClass":"pl-pds"},{"start":38,"end":39,"cssClass":"pl-pds"}],[{"start":20,"end":21,"cssClass":"pl-c1"}],[],[],[],[{"start":0,"end":4,"cssClass":"pl-k"},{"start":5,"end":9,"cssClass":"pl-en"},{"start":13,"end":107,"cssClass":"pl-c"},{"start":13,"end":15,"cssClass":"pl-c"}],[],[{"start":2,"end":11,"cssClass":"pl-c1"}],[{"start":2,"end":4,"cssClass":"pl-k"},{"start":22,"end":23,"cssClass":"pl-c1"},{"start":25,"end":40,"cssClass":"pl-c1"}],[]],"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/Cedric02700/RelaisUSB/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":false,"repoAlertsPath":"/Cedric02700/RelaisUSB/security/dependabot","repoSecurityAndAnalysisPath":"/Cedric02700/RelaisUSB/settings/security_analysis","repoOwnerIsOrg":false,"currentUserCanAdminRepo":false},"displayName":"RelaisUSB.ino","displayUrl":"https://github.com/Cedric02700/RelaisUSB/blob/master/Code%20Arduino/RelaisUSB.ino?raw=true","headerInfo":{"blobSize":"5.4 KB","deleteInfo":{"deletePath":"https://github.com/Cedric02700/RelaisUSB/delete/master/Code%20Arduino/RelaisUSB.ino","deleteTooltip":"Fork this repository and delete the file"},"editInfo":{"editTooltip":"Fork this repository and edit the file"},"ghDesktopPath":"https://desktop.github.com","gitLfsPath":null,"onBranch":true,"shortPath":"e456ab4","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FCedric02700%2FRelaisUSB%2Fblob%2Fmaster%2FCode%2520Arduino%2FRelaisUSB.ino","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"199","truncatedSloc":"194"},"mode":"file"},"image":false,"isCodeownersFile":null,"isValidLegacyIssueTemplate":false,"issueTemplateHelpUrl":"https://docs.github.com/articles/about-issue-and-pull-request-templates","issueTemplate":null,"discussionTemplate":null,"language":"C++","large":false,"loggedIn":true,"newDiscussionPath":"/Cedric02700/RelaisUSB/discussions/new","newIssuePath":"/Cedric02700/RelaisUSB/issues/new","planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/Cedric02700/RelaisUSB/blob/master/Code%20Arduino/RelaisUSB.ino","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","dismissStackNoticePath":"/settings/dismiss-notice/publish_stack_from_file","releasePath":"/Cedric02700/RelaisUSB/releases/new?marketplace=true","showPublishActionBanner":false,"showPublishStackBanner":false},"renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"repoOwner":"Cedric02700","repoName":"RelaisUSB","showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","showDependabotConfigurationBanner":false,"actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timedOut":false,"notAnalyzed":true,"symbols":[]}},"csrf_tokens":{"/Cedric02700/RelaisUSB/branches":{"post":"cf5dpsyrSqlnZPQSvRQlUjeltuQpdEh-rgY2ZzQd79C7Vp4LpT6jSMllY61BZ6Ih_KPhVWffGOreyph8v2k_dw"}}},"title":"RelaisUSB/RelaisUSB.ino at master · Cedric02700/RelaisUSB","locale":"en","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-848bb9a5da17.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-8812f8040df6.js","githubDevUrl":"https://github.dev/","enabled_features":{"virtualize_file_tree":true,"react_repos_overview":false,"repos_new_shortcut_enabled":false,"blob_navigation_cursor":true,"code_nav_ui_events":false,"ref_selector_v2":false,"codeview_codemirror_next":false,"copilot_conversational_ux":false}}}</script>
 
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:2187:16: error: expected unqualified-id before numeric constant
         &copy; 2023 GitHub, Inc.
                ^~~~
D:\Desktop\projet arduino\Relais USB\RelaisUSB\RelaisUSB.ino:2292:5: error: expected unqualified-id before '<' token
     </style>
     ^

exit status 1

Compilation error: stray '\302' in program

J'ai cette erreur quand j'essais de programmer mon arduino

Lien vers le commentaire
Partager sur d’autres sites

Posté (modifié)

Salut Freeman.

   Pour les erreurs de compilation, c'est le "clic droit  + enregistrer le liens sous..." qui ne fonctionne pas. Ca enregistre bien un .ino mais à l'intérieur il y a du HTML. Il faut donc cliquer sur le liens et dans GitHub et faire la manip "clic droit  + enregistrer le liens sous..." sur le bouton RAW au dessus de la fenêtre contenant le code.

   Je n'ai pas développé de driver ascom pour lui. J'ai développé une autre boite avec au choix une connexion wifi ou Ethernet. Celle ci dispose d'un driver ascom. J'expose tout  ici. Si ça t'intéresse il me reste des PCB et la majorité des composants pour assembler les cartes. 

Modifié par Cedric02700
Lien vers le commentaire
Partager sur d’autres sites

  • 1 mois plus tard...

Bonjour j'ai trouver un autre projet arduino de relais USB compatible ASCOM dont voici la source https://www.youtube.com/watch?v=SEDUN2QxzrE

 

Par contre les relais sont inversé (dans nina ils apparaissent off alors qu'ils sont on et vice versa) je ne sais pas comment faire pour les mettre dans le bon sens j'y connais rien en code si jamais qu'un pouvais m'aider à le modifier pour que ce soit dans le sens ce serais sympa merci !

void SerialReceive();

const int SerialBufferSize = 6;
int relayArray [8] = {2, 3, 4, 5, 6, 7, 8, 9};
enum SerialState {start, wait, receive};
enum SerialState currentState = start;
char receiveBuffer [SerialBufferSize];
int bufferPosition = 0;
enum SerialState lastState = start;

// As per original sketch
//const int digital_on = 0;
//const int digital_off = 1;

// to handle relays which are reversed, swap these around eg XC-4418 (https://www.jaycar.com.au/medias/sys_master/images/images/9403712995358/XC4418-dataSheetMain.pdf)
const int digital_on = 1;
const int digital_off = 0;


// Command reference
// 
// :{S|R}{relaynum 0-7}{1=on, 0=off}#
// eg. :S00# = Set Relay 0 to OFF
// eg. :S01# = Set Relay 0 to ON
// eg. :R0# = Read status of relay 1, returns 0=Off, 1=On


void setup()
{
  // put your setup code here, to run once:

  for (int i = 0; i < 8; i++)
  {
    digitalWrite(relayArray[i],digital_off);  // switch off relays by default
    pinMode(relayArray[i], OUTPUT);
  }
}

void loop()
{
  SerialStateMachine();
}

int DigitalReadOutputPin(int pin)
{
  int bit = digitalPinToBitMask(pin);
  int port = digitalPinToPort(pin);
  if (port == NOT_A_PIN)
    return -1;
  return (*portOutputRegister(port) & bit) ? 0 : 1;
}

char ReadOneChar()
{
    if (Serial.available() == 0)
    return 0;
    char rxByte = Serial.read();
    //Serial.println(rxByte);
    return rxByte;
}


void testMode()
{
  for (int i = 0; i < 8; i++) //turn relays on
  {
    WriteRelayPin(relayArray[i], digital_on);
    delay (250);
  }

  for (int i = 0; i < 8; i++) //turn relays off
  {
    WriteRelayPin(relayArray[i], digital_off);
    delay (250);
  }
}



void SerialStateMachine()
{
  // if (currentState != lastState)
  // {
  //   Serial.print("State ");
  //   Serial.println(currentState);
  // }

  lastState = currentState;
  switch (currentState)
  {
    case start: SerialStart();
      break;
    case wait: SerialWait();
      break;
    case receive: SerialReceive();
      break;
  }
  
}

void SerialStart()
{
  ClearBuffer();
  Serial.begin(9600);
  currentState = wait;
  // Serial.println("SerialStart Initiated");
}

void ClearBuffer()
{
  bufferPosition = 0;
  for (int i =0; i < SerialBufferSize; i++)
  {
    receiveBuffer[i] = 0;
  }
}

void SerialWait()
{

  char rxByte = ReadOneChar();
 
  if (rxByte != ':')
    return;
  ClearBuffer();
  currentState = receive;
}

void SerialReceive()
{

  char rxByte = ReadOneChar();
  
  switch (rxByte)
  {
    case ':': 
      ClearBuffer();
      break;
    case '#':
      InterpretCommand();
      break;
    case 0:
      return;
    default:
      receiveBuffer[bufferPosition++] = rxByte;
      break;
  }
}

void SendRelayStatus(int relay,int relayStatus)
{
  Serial.print(':');
  Serial.print(receiveBuffer[0]);
  Serial.print(relay);
  Serial.print(relayStatus);
  Serial.print('#');
}

int GetRelayNumber()
{
  char relay = receiveBuffer[1];
  if (relay <'0' || relay > '7')
  {
    Serial.println("Bad relay number");
    return -1;
  }
  int relayNumber = relay - '0';
  return relayNumber;
}

void DoReadCommand()
{
  if (bufferPosition != 2)
  {
    Serial.println("Wrong number of characters");
    return;
  }
  int relay = GetRelayNumber();
  if (relay <0) return;
  int relayStatus = DigitalReadOutputPin(relayArray[relay]); 
  SendRelayStatus(relay,relayStatus);
  }

void WriteRelayPin(int relayPin, int relayValue)
{
  digitalWrite(relayPin, relayValue == digital_on ? digital_on : digital_off);
}

void DoSetCommand()
{
  if (bufferPosition != 3)
  {
    Serial.println("Wrong number of characters");
    return;
  }
  int relay = GetRelayNumber();
  if (relay <0) return;
  int relayPin = relayArray[relay];
  int onOffCommand = receiveBuffer[2];
  if (onOffCommand <'0' || onOffCommand > '1')
  {
    Serial.println("Bad data");
    return;
  }

  //int relayValue = onOffCommand - '0';
  int relayValue;
  if (onOffCommand == '0' ? relayValue = digital_off : relayValue = digital_on);
  
  WriteRelayPin(relayPin, relayValue);
  SendRelayStatus(relay,relayValue);
  }

void InterpretCommand()
{
  // Serial.print("Received ");
  // Serial.println(receiveBuffer);
  switch (receiveBuffer[0])
  {
    case 's':
    case 'S':
      DoSetCommand();
      break;
    case 'r': 
    case 'R':
      DoReadCommand();
      break;
    default:
      Serial.println("Bad command");
  }
}
  

 

Lien vers le commentaire
Partager sur d’autres sites

Il y a 9 heures, freeman32 a dit :
// As per original sketch
//const int digital_on = 0;
//const int digital_off = 1;

// to handle relays which are reversed, swap these around eg XC-4418 (https://www.jaycar.com.au/medias/sys_master/images/images/9403712995358/XC4418-dataSheetMain.pdf)
const int digital_on = 1;
const int digital_off = 0;

je pense que c'est par ici que tu devrais chercher ...  👀

Lien vers le commentaire
Partager sur d’autres sites

  • 1 année plus tard...

Bonsoir à tous .

Je relance un peu le sujet .

Petite question : avec ce genre de montage arduino carte relais , est-ce que certains d'entre vous contrôlent l'ouverture et la fermeture d'un poste fixe via un moteur d'essuis glace ou autre ? 

Et est-il possible de le faire avec des cartes relais usb ? 

ar-carte-usb-4-relais-usb-rly04-34386.jpg

Lien vers le commentaire
Partager sur d’autres sites

Salut. Pourrai tu preciser ta question? Un liens vers la carte en question serait bien aussi. Si les relais sont assez costaud pour alimenter le moteur, oui il sera possible de piloter l'ouverture et la fermeture du poste fixe avec cette carte usb. Il  faudra cepandant gerer les fins de courses sur la partie puissance de l'installation 

Lien vers le commentaire
Partager sur d’autres sites

Bonjour,

pourquoi ne pas prendre un moteur de portail bas de gamme (200kg de charge) ća facilite grandement les choses niveau mise en place (contact sec en entrée la carte moteur gère tt le reste).

A+

Lien vers le commentaire
Partager sur d’autres sites

Il y a 2 heures, Cedric02700 a dit :

Niveau intensité ça passe. C'est juste pour du controle à distance? Pas d'automatisation envisagée?

Dans un premier temps oui , control a distance. 

Après si je trouve a automatiser avec nina pourquoi pas mais il faut arriver à trouver 

Lien vers le commentaire
Partager sur d’autres sites

Le probleme de l'automatisation c'est l'abscence de retour numerique des fins de course. Donc pas d'alerte en cas de defaillance. Si cette option n'est pas primordiale, il est possible de developer assez facilement un driver ascom basique pour gerer l'ouverture et la fermeture du poste fixe. 

Lien vers le commentaire
Partager sur d’autres sites

Non c'est pas primordial 

Par contre pouvoir contrôler l'ouverture et la fermeture à distance oui 

J'ai vu que certaines cartes avaient un petit soft pour les contrôler 

Lien vers le commentaire
Partager sur d’autres sites

Il y a 1 heure, houme16 a dit :

Non c'est pas primordial 

Par contre pouvoir contrôler l'ouverture et la fermeture à distance oui 

J'ai vu que certaines cartes avaient un petit soft pour les contrôler 

La carte que tu as mis en liens plus haut possède un petit soft de test qui permet de piloter les relais. Pour le driver ascom je dois pouvoir te faire ça. 

Lien vers le commentaire
Partager sur d’autres sites

Ah bin la , je te remercie grandement pour ton aide . 

Par contre je vais t'envoyer un msg en privé pour te poser une question sur le fonctionnement si tu es d'accord biensur. 

Lien vers le commentaire
Partager sur d’autres sites

  • 2 semaines plus tard...
Le 03/10/2024 à 17:57, houme16 a dit :

Ah bin la , je te remercie grandement pour ton aide . 

Par contre je vais t'envoyer un msg en privé pour te poser une question sur le fonctionnement si tu es d'accord biensur. 

 

Si tu veux il y a presque tout ce que tu à besoin ici :

 

Rolling Roof Computer Interface (RRCI) | Arduino Project Hub Et ca fonctionne sous NINA j'ai testé !

 

Je sui en train d'en monter un avec un moteur de portail.

20241005_155413.jpg

Modifié par freeman32
Lien vers le commentaire
Partager sur d’autres sites

Rejoignez la conversation !

Vous pouvez répondre maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous pour poster avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

  • En ligne récemment   0 membre est en ligne

    • Aucun utilisateur enregistré regarde cette page.
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.