<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Programming on Jackenhack</title><link>https://www.jackenhack.com/tags/programming/</link><description>Recent content in Programming on Jackenhack</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 20 Nov 2015 00:00:00 +0000</lastBuildDate><atom:link href="https://www.jackenhack.com/tags/programming/index.xml" rel="self" type="application/rss+xml"/><item><title>Speeding up your SPI MAX7219 LED displays using a modified Arduino LedControl Library</title><link>https://www.jackenhack.com/max7219-led-display-arduino-speedup-hardware-spi/</link><pubDate>Fri, 20 Nov 2015 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/max7219-led-display-arduino-speedup-hardware-spi/</guid><description>&lt;p&gt;&lt;img alt="Image of an 8 Digit LED Display SPI controlled MAX7219" decoding="async" height="928" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/max7219-led-display-arduino-speedup-hardware-spi/images/led-display-max7219_hu_3f117f434e8b5538.jpg" srcset="https://www.jackenhack.com/max7219-led-display-arduino-speedup-hardware-spi/images/led-display-max7219_hu_c80a0ed25cfb999b.jpg 360w,/max7219-led-display-arduino-speedup-hardware-spi/images/led-display-max7219_hu_bb33f7ad4590bfb6.jpg 480w,/max7219-led-display-arduino-speedup-hardware-spi/images/led-display-max7219_hu_d7a8f93917f89218.jpg 720w" width="1023"&gt;&lt;/p&gt;
&lt;h2 id="speeding-up-your-spi-max7219-led-displays-when-using-arduino-and-ledcontrol-library"&gt;Speeding up your SPI MAX7219 LED displays when using Arduino and LedControl Library&lt;/h2&gt;
&lt;p&gt;In preparation for the arrival of my GPSDO&lt;a href="#fn-1" title="see footnote"&gt;[1]&lt;/a&gt;, I’m doing a quick build of an “Atomic Clock” display to have above my lab equipment. I’m using a &lt;a href="https://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&amp;amp;toolid=11800&amp;amp;pub=5575287150&amp;amp;campid=5338067808&amp;amp;mpre=http%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_odkw%3D8%2Bdigit%2Bled%2Bdisplay%26_sop%3D12%26_osacat%3D0%26_from%3DR40%26_trksid%3Dp2045573.m570.l1313.TR0.TRC0.H0.X8%2Bdigit%2Bled%2Bdisplay%2Bmax7219.TRS0%26_nkw%3D8%2Bdigit%2Bled%2Bdisplay%2Bmax7219%26_sacat%3D0"&gt;cheap, small eight digit red LED SPI-controlled display.&lt;/a&gt; It uses the &lt;a href="https://www.maximintegrated.com/en/products/power/display-power-control/MAX7219.html"&gt;MAX7219&lt;/a&gt; controller that I got from eBay for next to nothing. I plan to parse the RS232 information from the GPSDO unit and display the exact time. I&amp;rsquo;ll also post error messages if the GPS signal lock gets lost.&lt;/p&gt;
&lt;p&gt;I’ve done a quick prototype using an &lt;a href="https://www.arduino.cc/en/Main/ArduinoBoardUno"&gt;Arduino Uno&lt;/a&gt;, but I plan to try to get an &lt;a href="http://www.atmel.com/devices/attiny85.aspx"&gt;Attiny85&lt;/a&gt; to work as the controller when I’ve finished the parser and the rest of the software.&lt;/p&gt;
&lt;p&gt;After doing some research, naturally, there was a library available to connect to my LED display called LedControl. It&amp;rsquo;s part of the standard Arduino libraries (in the download section). But when I checked the code, it uses the Arduino routines to shift out the SPI data to the display. It&amp;rsquo;s great if you want to be able to use any pins to connect to the screen, but using Arduino’s bit manipulation tools for “bit-banging” the display is slow.&lt;/p&gt;</description></item><item><title>How To import modules with Pipista into Editorial iOS app</title><link>https://www.jackenhack.com/editorial-app-import-modules-with-pipista/</link><pubDate>Sun, 06 Apr 2014 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/editorial-app-import-modules-with-pipista/</guid><description>&lt;p&gt;&lt;img alt="1377461573.jpg" decoding="async" height="128" loading="lazy" src="https://www.jackenhack.com/editorial-app-import-modules-with-pipista/images/1377461573-150x128_hu_c155e926571bb72b.jpg" width="150"&gt;&lt;/p&gt;
&lt;h2 id="importing-pipista-modules-in-editorial"&gt;Importing pipista modules in Editorial&lt;/h2&gt;
&lt;p&gt;&lt;img alt="Download on the AppStore" decoding="async" height="200" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/editorial-app-import-modules-with-pipista/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_e9bd881d9508069.png" srcset="https://www.jackenhack.com/editorial-app-import-modules-with-pipista/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_9f896ab9e7102ec7.png 360w,/editorial-app-import-modules-with-pipista/images/Download_on_the_App_Store_Badge_US-UK_135x40_0824_hu_dc70ee18946631a9.png 480w" width="659"&gt;Lets face it, the &lt;a href="http://omz-software.com/editorial/" title="Editorial for iPad"&gt;Editorial&lt;/a&gt; App is a fantastic text/Markdown editor. It’s incredibly powerful with scripting abilities. But one of the most amazing tool for a power user is the ability to write Python scripts that can do almost anything. There are a lot of modules included with Editorial, but how do you add a library if it’s not included? There is a script for Editorials sister application Pythonista, that makes it easy to add modules, and you can use that for importing libraries to Editorial as well. The script is called &lt;a href="https://gist.github.com/pudquick/4317095" title="Version 2.0 of pipista - Unstable branch :)"&gt;Pipista&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>How to use interrupts with Python on the Raspberry Pi and RPi.GPIO » RasPi.TV</title><link>https://www.jackenhack.com/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/</link><pubDate>Tue, 19 Mar 2013 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/</guid><description>&lt;p&gt;&lt;img alt="raspberry-pi-logo" decoding="async" height="1440" loading="lazy" sizes="(min-width: 768px) 720px, 100vw" src="https://www.jackenhack.com/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/images/raspberry-pi-logo_hu_2006f59e20cfbe25.png" srcset="https://www.jackenhack.com/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/images/raspberry-pi-logo_hu_a1d9c616596ab41d.png 360w,/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/images/raspberry-pi-logo_hu_63cfc76619ba0b1f.png 480w,/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/images/raspberry-pi-logo_hu_ce91df34fae40af0.png 720w,/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/images/raspberry-pi-logo_hu_a951a74991497081.png 1080w,/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv/images/raspberry-pi-logo_hu_2006f59e20cfbe25.png 1440w" width="1440"&gt;&lt;br&gt;
&lt;a href="http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio"&gt;How to use interrupts with Python on the Raspberry Pi and RPi.GPIO » RasPi.TV&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;We’ve finally got interrupt capability on the Raspberry Pi for GPIO programming in Python using RPi.GPIO.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Interesting! Saving this link for later experimenting. Need buttons for my Carputer Raspberry Pi.&lt;/p&gt;
&lt;p&gt;Via &lt;a href="http://www.scoop.it/t/raspberry-pi/p/3998495504/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio-raspi-tv?_tmc=MtLL3YsveuCqkb1uJ8iWzRYpXkaszG2FW15vSncTSh8"&gt;Scoop.it!&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Blog Post Directly from iOS Safari to Poster App Using Pythonista Script</title><link>https://www.jackenhack.com/blog-post-ios-safari-poster-app-pythonista-script/</link><pubDate>Wed, 13 Mar 2013 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/blog-post-ios-safari-poster-app-pythonista-script/</guid><description>&lt;p&gt;&lt;img alt="Poster Icon image" decoding="async" height="150" loading="lazy" src="https://www.jackenhack.com/blog-post-ios-safari-poster-app-pythonista-script/images/poster-icon-150x150_hu_f4b5bd475fad195c.jpg" width="150"&gt;I want to be able to share interesting web pages on my Wordpress blog using iOS directly from Safari using a bookmark and a &lt;a href="https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/"&gt;Pythonista&lt;/a&gt; Python script. The script takes the URL of the page, any text you copied and the page title, formats it in &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt; and creates a new post in &lt;a href="http://www.tomwitkin.com/poster/"&gt;Poster App&lt;/a&gt; automatically.&lt;/p&gt;</description></item><item><title>Pythonista Review - Programming iOS with Python for iPad iPhone</title><link>https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/</link><pubDate>Wed, 06 Feb 2013 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/</guid><description>&lt;p&gt;&lt;img alt="Pythonista icon" decoding="async" height="208" loading="lazy" src="https://www.jackenhack.com/scripting-programming-iphone-ipad-python-pythonista-review/images/pythonista_icon_hu_3b3e1ac7e5eb4576.jpg" width="208"&gt;&lt;/p&gt;
&lt;h2 id="pythonista-finally-programming-workflow-automation-for-ios"&gt;Pythonista, finally programming workflow automation for iOS?&lt;/h2&gt;
&lt;p&gt;I’m doing most of my writing on my iPad or occasionally on my iPhone, and I write everything in &lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt;. There are some great scripts in my current favorite language &lt;strong&gt;Python&lt;/strong&gt; out there for doing &lt;strong&gt;Markdown&lt;/strong&gt; conversions, image manipulations, etc., but unfortunately, Apple rules regarding programming apps on &lt;strong&gt;iOS&lt;/strong&gt; devices are pretty stringent. But an app for programming Python on iOS called Pythonista have some smart ways of getting around some of Apple&amp;rsquo;s restrictions. And one of the wonderful things you can do is home screen shortcuts, making your scripts available directly from the home screen of your iOS device. All you have to do to &lt;a href="http://omz-software.com/pythonista/shortcut/"&gt;create a &lt;strong&gt;Pythonista&lt;/strong&gt; home screen shortcut&lt;/a&gt; is to go to a web page and enter the script name and optional arguments. After that, add the page home-screen with Safari’s bookmarks button. Another way of starting your scripts is directly as bookmarks in Safari or another web browser. I found the app from this &lt;a href="http://www.macstories.net/stories/automating-ios-how-pythonista-changed-my-workflow/"&gt;article about making life easier by scripting with &lt;strong&gt;Pythonista&lt;/strong&gt;&lt;/a&gt;, a great read of all the functions available in the app.&lt;/p&gt;
&lt;p&gt;Because they added a Python library for managing the clipboard, you can copy pictures or text to it, then start your script that reads from the clipboard and then put the new modified text/picture back to the clipboard, ready for pasting into any app. Very handy!&lt;/p&gt;</description></item><item><title>My favorite commands in .bash_profile on Mac OS X</title><link>https://www.jackenhack.com/my-favorite-commands-in-bash_profile-on-mac-os-x/</link><pubDate>Wed, 24 Nov 2010 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/my-favorite-commands-in-bash_profile-on-mac-os-x/</guid><description>&lt;p&gt;Here are some additions to my .bash_profile for making life easier. I especially like that completion now ignores case. Makes navigating the file system so much faster. Give them a spin. [cc lang=&amp;ldquo;bash&amp;rdquo;]export HISTCONTROL=erasedups export HISTSIZE=10000 shopt -s histappend set completion-ignore-case on [/cc]&lt;/p&gt;</description></item><item><title>Arduino, a good way for kids to learn how to program</title><link>https://www.jackenhack.com/arduino-a-good-way-of-learning-kids-to-program/</link><pubDate>Mon, 09 Aug 2010 00:00:00 +0000</pubDate><guid>https://www.jackenhack.com/arduino-a-good-way-of-learning-kids-to-program/</guid><description>&lt;p&gt;My twelve year old son want&amp;rsquo;s to learn how to program. My first idea was to teach him Ruby or Python, but I decided to go with &lt;a href="http://www.amazon.com/Arduino-Duemilanove-Board-with-ATmega328/dp/B003N01NPU%3FSubscriptionId%3D0PZ7TM66EXQCXFVTMTR2%26tag%3Djacken-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB003N01NPU"&gt;Arduino&lt;/a&gt;. It&amp;rsquo;s C-based so that&amp;rsquo;s a good start I think. Were currently planning a couple of projects but so far he&amp;rsquo;s managed to get some LED&amp;rsquo;s blinking. A good start.&lt;/p&gt;</description></item></channel></rss>