8000 circuitpython/teensy at travis-stackless · ReeceRobinson/circuitpython · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"teensy","repo":{"id":477021043,"defaultBranch":"main","name":"circuitpython","ownerLogin":"ReeceRobinson","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2022-04-02T10:26:30.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/8346450?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"travis-stackless","listCacheKey":"v0:1649120993.056562","canEdit":false,"refType":"branch","currentOid":"5a6b1f6e79541f387ec6e64ba66124da26f2a810"},"tree":{"items":[{"name":"core","path":"teensy/core","contentType":"directory"},{"name":"memzip_files","path":"teensy/memzip_files","contentType":"directory"},{"name":"Makefile","path":"teensy/Makefile","contentType":"file"},{"name":"README.md","path":"teensy/README.md","contentType":"file"},{"name":"add-memzip.sh","path":"teensy/add-memzip.sh","contentType":"file"},{"name":"hal_ftm.c","path":"teensy/hal_ftm.c","contentType":"file"},{"name":"hal_ftm.h","path":"teensy/hal_ftm.h","contentType":"file"},{"name":"hal_gpio.c","path":"teensy/hal_gpio.c","contentType":"file"},{"name":"help.c","path":"teensy/help.c","contentType":"file"},{"name":"lcd.c","path":"teensy/lcd.c","contentType":"file"},{"name":"led.c","path":"teensy/led.c","contentType":"file"},{"name":"led.h","path":"teensy/led.h","contentType":"file"},{"name":"lexerfatfs.c","path":"teensy/lexerfatfs.c","contentType":"file"},{"name":"lexerfrozen.c","path":"teensy/lexerfrozen.c","contentType":"file"},{"name":"lexermemzip.h","path":"teensy/lexermemzip.h","contentType":"file"},{"name":"main.c","path":"teensy/main.c","contentType":"file"},{"name":"make-pins.py","path":"teensy/make-pins.py","contentType":"file"},{"name":"mk20dx256.ld","path":"teensy/mk20dx256.ld","contentType":"file"},{"name":"mk20dx256_af.csv","path":"teensy/mk20dx256_af.csv","contentType":"file"},{"name":"mk20dx256_prefix.c","path":"teensy/mk20dx256_prefix.c","contentType":"file"},{"name":"modpyb.c","path":"teensy/modpyb.c","contentType":"file"},{"name":"mpconfigport.h","path":"teensy/mpconfigport.h","contentType":"file"},{"name":"pin_defs_teensy.c","path":"teensy/pin_defs_teensy.c","contentType":"file"},{"name":"pin_defs_teensy.h","path":"teensy/pin_defs_teensy.h","contentType":"file"},{"name":"qstrdefsport.h","path":"teensy/qstrdefsport.h","contentType":"file"},{"name":"reg.c","path":"teensy/reg.c","contentType":"file"},{"name":"reg.h","path":"teensy/reg.h","contentType":"file"},{"name":"servo.c","path":"teensy/servo.c","contentType":"file"},{"name":"servo.h","path":"teensy/servo.h","contentType":"file"},{"name":"std.h","path":"teensy/std.h","contentType":"file"},{"name":"teensy_hal.c","path":"teensy/teensy_hal.c","contentType":"file"},{"name":"teensy_hal.h","path":"teensy/teensy_hal.h","contentType":"file"},{"name":"teensy_pins.csv","path":"teensy/teensy_pins.csv","contentType":"file"},{"name":"timer.c","path":"teensy/timer.c","contentType":"file"},{"name":"timer.h","path":"teensy/timer.h","contentType":"file"},{"name":"uart.c","path":"teensy/uart.c","contentType":"file"},{"name":"usb.c","path":"teensy/usb.c","contentType":"file"},{"name":"usb.h","path":"teensy/usb.h","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eBuild Instructions for Teensy 3.1\u003c/h1\u003e\u003ca id=\"user-content-build-instructions-for-teensy-31\" class=\"anchor\" aria-label=\"Permalink: Build Instructions for Teensy 3.1\" href=\"#build-instructions-for-teensy-31\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCurrently the Teensy 3.1 port of MicroPython builds under Linux and not under Windows.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eThe tool chain required for the build can be found at \u003ca href=\"https://launchpad.net/gcc-arm-embedded\" rel=\"nofollow\"\u003ehttps://launchpad.net/gcc-arm-embedded\u003c/a\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eDownload the current Linux *.tar.bz2 file. Instructions regarding unpacking the file and moving it to the correct location\nas well as adding the extracted folders to the enviroment variable can be found at\n\u003ca href=\"http://eliaselectronics.com/stm32f4-tutorials/setting-up-the-stm32f4-arm-development-toolchain/\" rel=\"nofollow\"\u003ehttp://eliaselectronics.com/stm32f4-tutorials/setting-up-the-stm32f4-arm-development-toolchain/\u003c/a\u003e\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIn order to download the firmware image to the teensy, you'll need to use the\ndownloader included with TeensyDuino. The following assumes that you have\nTeensyDuino installed and set the ARDUINO environment variable pointing to the\nwhere Arduino with TeensyDuino is installed.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"cd teensy\nARDUINO=~/arduino-1.0.5 make\"\u003e\u003cpre\u003e\u003cspan class=\"pl-c1\"\u003ecd\u003c/span\u003e teensy\nARDUINO=\u003cspan class=\"pl-k\"\u003e~\u003c/span\u003e/arduino-1.0.5 make\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eTo upload micropython to the Teensy 3.1.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003ePress the Program button on the Teensy 3.1\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"sudo ARDUINO=~/arduino-1.0.5/ make deploy\"\u003e\u003cpre\u003esudo ARDUINO=\u003cspan class=\"pl-k\"\u003e~\u003c/span\u003e/arduino-1.0.5/ make deploy\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCurrently, the Python prompt is through the USB serial interface, i.e.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"minicom -D /dev/ttyACM0\"\u003e\u003cpre\u003eminicom -D /dev/ttyACM0\u003c/pre\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch2 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eTIPS\u003c/h2\u003e\u003ca id=\"user-content-tips\" class=\"anchor\" aria-label=\"Permalink: TIPS\" href=\"#tips\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eInstall 49-teensy.rules into /etc/udev/rules.d\u003c/h3\u003e\u003ca id=\"user-content-install-49-teensyrules-into-etcudevrulesd\" class=\"anchor\" aria-label=\"Permalink: Install 49-teensy.rules into /etc/udev/rules.d\" href=\"#install-49-teensyrules-into-etcudevrulesd\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eIf you install the 49-teensy.rules file from \u003ca href=\"http://www.pjrc.com/teensy/49-teensy.rules\" rel=\"nofollow\"\u003ehttp://www.pjrc.com/teensy/49-teensy.rules\u003c/a\u003e\ninto your \u003ccode\u003e/etc/udev/rules.d\u003c/code\u003e folder then you won't need to use sudo:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"sudo cp ~/Downloads/49-teensy.rules /etc/udev/rules.d\nsudo udevadm control --reload-rules\"\u003e\u003cpre\u003esudo cp \u003cspan class=\"pl-k\"\u003e~\u003c/span\u003e/Downloads/49-teensy.rules /etc/udev/rules.d\nsudo udevadm control --reload-rules\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eUnplug and replug the teensy board, and then you can use: \u003ccode\u003eARDUINO=~/arduino-1.0.5/ make deploy\u003c/code\u003e\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eCreate a GNUmakefile to hold your ARDUINO setting.\u003c/h3\u003e\u003ca id=\"user-content-create-a-gnumakefile-to-hold-your-arduino-setting\" class=\"anchor\" aria-label=\"Permalink: Create a GNUmakefile to hold your ARDUINO setting.\" href=\"#create-a-gnumakefile-to-hold-your-arduino-setting\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eCreate a file call GNUmakefile (note the lowercase m) in the teensy folder\nwith the following contents:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-makefile notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"$(info Executing GNUmakefile)\n\nARDUINO=${HOME}/arduino-1.0.5\n$(info ARDUINO=${ARDUINO})\n\ninclude Makefile\"\u003e\u003cpre\u003e$(info Executing GNUmakefile)\n\n\u003cspan class=\"pl-smi\"\u003eARDUINO\u003c/span\u003e=${HOME}/arduino-1.0.5\n$(info ARDUINO=${ARDUINO})\n\n\u003cspan class=\"pl-k\"\u003einclude\u003c/span\u003e Makefile\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eGNUmakefile is not checked into the source code control system, so it will\nretain your settings when updating your source tree. You can also add\nadditional Makefile customizations this way.\u003c/p\u003e\n\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch3 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003eTips for OSX\u003c/h3\u003e\u003ca id=\"user-content-tips-for-osx\" class=\"anchor\" aria-label=\"Permalink: Tips for OSX\" href=\"#tips-for-osx\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSet the ARDUINO environment variable to the location where Arduino with TeensyDuino is installed.\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"export ARDUINO=~/Downloads/Arduino.app/Contents/Java/\"\u003e\u003cpre\u003e\u003cspan class=\"pl-k\"\u003eexport\u003c/span\u003e ARDUINO=\u003cspan class=\"pl-k\"\u003e~\u003c/span\u003e/Downloads/Arduino.app/Contents/Java/\u003c/pre\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eSearch /dev/ for USB port name, which will be cu.usbmodem followed by a few numbers. The name of the port maybe different depending on the version of OSX.\nTo access the Python prompt type:\u003c/p\u003e\n\u003cdiv class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"screen \u0026lt;devicename\u0026gt; 115200\"\u003e\u003cpre\u003escreen \u003cspan class=\"pl-k\"\u003e\u0026lt;\u003c/span\u003edevicename\u003cspan class=\"pl-k\"\u003e\u0026gt;\u003c/span\u003e 115200\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"Build Instructions for Teensy 3.1","anchor":"build-instructions-for-teensy-31","htmlText":"Build Instructions for Teensy 3.1"},{"level":2,"text":"TIPS","anchor":"tips","htmlText":"TIPS"},{"level":3,"text":"Install 49-teensy.rules into /etc/udev/rules.d","anchor":"install-49-teensyrules-into-etcudevrulesd","htmlText":"Install 49-teensy.rules into /etc/udev/rules.d"},{"level":3,"text":"Create a GNUmakefile to hold your ARDUINO setting.","anchor":"create-a-gnumakefile-to-hold-your-arduino-setting","htmlText":"Create a GNUmakefile to hold your ARDUINO setting."},{"level":3,"text":"Tips for OSX","anchor":"tips-for-osx","htmlText":"Tips for OSX"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FReeceRobinson%2Fcircuitpython%2Ftree%2Ftravis-stackless%2Fteensy"}},"totalCount":38,"showBranchInfobar":true},"fileTree":{"":{"items":[{"name":"bare-arm","path":"bare-arm","contentType":"directory"},{"name":"cc3200","path":"cc3200","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"drivers","path":"drivers","contentType":"directory"},{"name":"esp8266","path":"esp8266","contentType":"directory"},{"name":"examples","path":"examples","contentType":"directory"},{"name":"extmod","path":"extmod","contentType":"directory"},{"name":"lib","path":"lib","contentType":"directory"},{"name":"logo","path":"logo","contentType":"directory"},{"name":"minimal","path":"minimal","contentType":"directory"},{"name":"mpy-cross","path":"mpy-cross","contentType":"directory"},{"name":"pic16bit","path":"pic16bit","contentType":"directory"},{"name":"py","path":"py","contentType":"directory"},{"name":"qemu-arm","path":"qemu-arm","contentType":"directory"},{"name":"stmhal","path":"stmhal","contentType":"directory"},{"name":"teensy","path":"teensy","contentType":"directory"},{"name":"tests","path":"tests","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":"unix","path":"unix","contentType":"directory"},{"name":"windows","path":"windows","contentType":"directory"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".gitmodules","path":".gitmodules","contentType":"file"},{"name":".travis.yml","path":".travis.yml","contentType":"file"},{"name":"ACKNOWLEDGEMENTS","path":"ACKNOWLEDGEMENTS","contentType":"file"},{"name":"CODECONVENTIONS.md","path":"CODECONVENTIONS.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":29}},"fileTreeProcessingTime":1.887487,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/ReeceRobinson/circuitpython/branches":{"post":"OGM551ayOOy4SZ7TAh406btrcWt8mf_Zb6aGGaiRijMLpMtcCVIOmmgSR94BNfNOc1rNxX8xyMiS6LQgiZxDqw"},"/ReeceRobinson/circuitpython/branches/fetch_and_merge/travis-stackless":{"post":"FBdtJwTeaKvG5D2NfWwOK3-s0OhqxoSf30Sn7LOOKDiZs5t8e6R7V3u3-pXu_goxtDg-mENPDshnLAy2usf9IQ"},"/ReeceRobinson/circuitpython/branches/fetch_and_merge/travis-stackless?discard_changes=true":{"post":"wqQEZbovDY03gZWl2GBZu93SRZi42D9CC3KXOUV81bxPAPI-xVUecYrSUr1L8l2hFkar6JFRtRWzGjxjTDUApQ"}}},"title":"circuitpython/teensy at travis-stackless · ReeceRobinson/circuitpython","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0