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
| /* Sleep Demo Serial | |
| * ----------------- | |
| * Example code to demonstrate the sleep functions in a Arduino. Arduino will wake up | |
| * when new data is received in the serial port USART | |
| * Based on Sleep Demo Serial from http://www.arduino.cc/playground/Learning/ArduinoSleepCode | |
| * | |
| * Copyright (C) 2006 MacSimski 2006-12-30 | |
| * Copyright (C) 2007 D. Cuartielles 2007-07-08 - Mexico DF | |
| * | |
| * With modifications from Ruben Laguna 2008-10-15 |
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
| /* Sleep Demo Serial | |
| * ----------------- | |
| * Example code to demonstrate the sleep functions in a Arduino. Arduino will wake up | |
| * when new data is received in the serial port USART | |
| * Based on Sleep Demo Serial from http://www.arduino.cc/playground/Learning/ArduinoSleepCode | |
| * | |
| * Copyright (C) 2006 MacSimski 2006-12-30 | |
| * Copyright (C) 2007 D. Cuartielles 2007-07-08 - Mexico DF | |
| * | |
| * With modifications from Ruben Laguna 2008-10-15 |
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
| /* Sleep Demo Serial | |
| * ----------------- | |
| * Example code to demonstrate the sleep functions in a Arduino. Arduino will wake up | |
| * when new data is received in the serial port USART | |
| * Based on Sleep Demo Serial from http://www.arduino.cc/playground/Learning/ArduinoSleepCode | |
| * | |
| * Copyright (C) 2006 MacSimski 2006-12-30 | |
| * Copyright (C) 2007 D. Cuartielles 2007-07-08 - Mexico DF | |
| * | |
| * With modifications from Ruben Laguna 2008-10-15 |
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
| # encoding: utf-8 | |
| import sys | |
| from glob import glob # glob will help us search for files based on their extension or filename. | |
| from distutils.core import setup # distutils sends the data py2exe uses to know which file compile | |
| import py2exe | |
| data_files = [ | |
| # All the files that are not .py, .pyd or .pyc should be invoked so py2exe adds them to the compilation | |
| ("Microsoft.VC90.CRT", | |
| glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*')), # Adds the file to the compilation folder because it may broke inside the compilation |
NewerOlder