Last Update: May 13, 2019
Offline Version
FWIW: I'm not the author of the content presented here (which is an outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def find(key, dictionary): | |
for k, v in dictionary.iteritems(): | |
if k == key: | |
yield v | |
elif isinstance(v, dict): | |
for result in find(key, v): | |
yield result | |
elif isinstance(v, list): | |
for d in v: | |
for result in find(key, d): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************************** | |
* MSP430G2553 ACLK Test | |
* | |
* Description: This code can be used to test if you have installed the | |
* 32.768kHz crystal on your LaunchPad correctly. Using this code | |
* LED1 (on P1.0) will turn on for 1 second, and off for one | |
* second. You can verify this with either an oscilloscope, logic | |
* analyzer, or by inspection. Simple as that! | |
* | |
* This code was originally created for "NJC's MSP430 |