{"id":13781014,"url":"https://github.com/todbot/arduino-serial","last_synced_at":"2025-04-09T17:23:21.074Z","repository":{"id":66886420,"uuid":"662310","full_name":"todbot/arduino-serial","owner":"todbot","description":"Example C and Java host code to talking to an arduino or other \"serial\" device","archived":false,"fork":false,"pushed_at":"2021-02-11T02:58:23.000Z","size":281,"stargazers_count":237,"open_issues_count":11,"forks_count":83,"subscribers_count":29,"default_branch":"main","last_synced_at":"2025-04-02T11:51:42.157Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://todbot.com/blog/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/todbot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-05-12T07:54:54.000Z","updated_at":"2025-03-23T05:54:36.000Z","dependencies_parsed_at":"2023-02-22T06:45:20.683Z","dependency_job_id":null,"html_url":"https://github.com/todbot/arduino-serial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todbot%2Farduino-serial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todbot%2Farduino-serial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todbot%2Farduino-serial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/todbot%2Farduino-serial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/todbot","download_url":"https://codeload.github.com/todbot/arduino-serial/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075370,"owners_count":21043572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:22.156Z","updated_at":"2025-04-09T17:23:21.052Z","avatar_url":"https://github.com/todbot.png","language":"C","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"arduino-serial -- C code to talk to Arduino\n===========================================\n\nOriginal URL: http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/\n\nPost about changes: http://todbot.com/blog/2013/04/29/arduino-serial-updated/\n\n\nUsage\n------\n\u003cpre\u003e\nlaptop%  ./arduino-serial\nUsage: arduino-serial -b \u003cbps\u003e -p \u003cserialport\u003e [OPTIONS]\n\nOptions:\n  -h, --help                 Print this help message\n  -b, --baud=baudrate        Baudrate (bps) of Arduino (default 9600)\n  -p, --port=serialport      Serial port Arduino is connected to\n  -s, --send=string          Send string to Arduino\n  -S, --sendline=string      Send string with newline to Arduino\n  -r, --receive              Receive string from Arduino \u0026 print it out\n  -n  --num=num              Send a number as a single byte\n  -F  --flush                Flush serial port buffers for fresh reading\n  -d  --delay=millis         Delay for specified milliseconds\n  -e  --eolchar=char         Specify EOL char for reads (default '\\n')\n  -t  --timeout=millis       Timeout for reads in millisecs (default 5000)\n  -q  --quiet                Don't print out as much info\n\nNote: Order is important. Set '-b' baudrate before opening port'-p'.\n      Used to make series of actions: '-d 2000 -s hello -d 100 -r'\n      means 'wait 2secs, send 'hello', wait 100msec, get reply'\n\n\u003c/pre\u003e\n\n\nDownloads\n---------\nFor convenience, here's some pre-built versions of arduino-serial. \nThey may not be updated regularly, so compile it yourself if you can.\nClick the \"view raw\" to get the actual zip file.\n\n- https://github.com/todbot/arduino-serial/blob/master/arduino-serial-macosx.zip\n- https://github.com/todbot/arduino-serial/blob/master/arduino-serial-linux.zip\n\n\nCompilation\n-----------\narduino-serial should compile on any POSIX-compatible system.\nTested on Mac OS X, Ubuntu Linux, Raspian Linux, Beaglebone Linux\n\nTo build, just check it out, make, and run it like:\n\u003cpre\u003e\n% git clone https://github.com/todbot/arduino-serial.git\n% cd arduino-serial\n% make\n% ./arduino-serial\n\u003c/pre\u003e\n\nFor more details on the build process, see the Makefile.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftodbot%2Farduino-serial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftodbot%2Farduino-serial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftodbot%2Farduino-serial/lists"}