Browse Source

initial commit

Tobias Müller 7 months ago
parent
commit
37b5939234

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+.vscode
+.micropico

BIN
Core/Micro_Python_Firmware_Pico.uf2


BIN
Core/Micro_Python_Firmware_Pico_W_WiFi.uf2


BIN
Core/Micro_Python_Firmware_Pico_W_WiFi_BLE.uf2


File diff suppressed because it is too large
+ 11 - 0
Core/README.md


BIN
Docs/Datasheets/Maker_Pi_Pico_Datasheet.pdf


BIN
Docs/Datasheets/RP2040_Datasheet.pdf


BIN
Docs/Datasheets/Raspberry_Pi_Pico_Datasheet.pdf


BIN
Docs/Datasheets/Raspberry_Pi_Pico_W_Datasheet.pdf


BIN
Docs/Getting_Started/Connecting_to_Internet_Pico_W.pdf


BIN
Docs/Getting_Started/Getting_started_with_Pico.pdf


BIN
Docs/Hardware/Design/Hardware_Design_RP2040.pdf


BIN
Docs/Hardware/Pinout/Maker_Pi_Pico_Pinout.pdf


BIN
Docs/Hardware/Pinout/Raspberry_Pi_Pico_Pinout.pdf


BIN
Docs/Hardware/Pinout/Raspberry_Pi_Pico_W_Pinout.pdf


BIN
Docs/Hardware/Schematics/Maker_Pi_Pico_Schematic.pdf


BIN
Docs/Hardware/Schematics/Raspberry_Pi_Pico_Schematic.pdf


BIN
Docs/Hardware/Schematics/Raspberry_Pi_Pico_W_Schematic.pdf


+ 3 - 0
Docs/README.md

@@ -0,0 +1,3 @@
+# Documentations
+
+Contains documentations of the Raspberry Pi Pico.

BIN
Docs/Software_Development_Kit/Raspberry_Pi_Pico_C_SDK.pdf


BIN
Docs/Software_Development_Kit/Raspberry_Pi_Pico_Python_SDK.pdf


+ 1 - 1
LICENSE

@@ -238,4 +238,4 @@ Also add information on how to contact you by electronic and paper mail.
 
 If your software can interact with users remotely through a computer network, you should also make sure that it provides a way for users to get its source. For example, if your program is a web application, its interface could display a "Source" link that leads users to an archive of the code. There are many ways you could offer source, and different solutions will be better for different programs; see section 13 for the specific requirements.
 
-You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.
+You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see <http://www.gnu.org/licenses/>.

+ 3 - 0
Libs/README.md

@@ -0,0 +1,3 @@
+# Libraries
+
+Contains user defined libraries and modules, which can be used inside of the main program.

+ 1 - 0
Libs/__init__.py

@@ -0,0 +1 @@
+from Libs import foo

+ 23 - 0
Libs/foo/__init__.py

@@ -0,0 +1,23 @@
+"""
+Example Lib
+"""
+
+class foo:
+    """
+    Example class.
+    """
+
+    ##############################           Attributes           ##############################
+
+
+    ##############################           Constructor          ##############################
+    def __init__(self):
+        pass
+
+    ##############################             Methods            ##############################
+    def bar(self):
+        """
+        Example Method.
+        """
+
+        print("class foo, method bar")

BIN
Pics/HSA-Banner.png


File diff suppressed because it is too large
+ 82 - 0
Pics/HSA_Logo_digital.svg


BIN
Pics/Raspberry_Pi_Pico.png


+ 23 - 2
README.md

@@ -1,3 +1,24 @@
-# Pico_Template_Python
+![](Pictures/HSA-Banner.png)
 
-Raspberry Pi Pico program template for python
+# Raspberry Pi Pico - Template for Python
+
+## Required Software
+
+
+Name | Explanation | Link
+---------|----------|---------
+ Python | B1 | [![](https://www.python.org/static/img/python-logo.png)](https://www.python.org/)
+ Visual Studio Code | B2 | [![](https://code.visualstudio.com/assets/images/code-stable.png)](https://code.visualstudio.com/)
+
+
+---
+
+**Hochschule Anhalt | Anhalt University of Applied Sciences | Fachbereich 6 EMW**  
+
+Prof. Dr.-Ing. Ingo Chmielewski  
+:e-mail: [Ingo.Chmielewski@HS-Anhalt.de ](mailto:Ingo.Chmielewski@HS-Anhalt.de)
+
+Tobias Müller, M. Eng.  
+:e-mail: [Tobias.Mueller@HS-Anhalt.de](mailto:Tobias.Mueller@HS-Anhalt.de)
+
+ :copyright: es-lab.de, 05.09.2023

BIN
README.pdf


+ 17 - 0
boot.py

@@ -0,0 +1,17 @@
+"""
+Author:     Tobias Müller
+Date:       30.06.2023
+Version:    1.0
+
+The "boot.py" will be started before "main.py" and is used to setup the Pico.
+"""
+
+##############################                 Modules               ##############################
+
+from machine import freq
+from sys import path
+
+##############################                 Code                   ##############################
+
+freq(250000000)         # overclock CPU from 133 MHz to 250 MHz
+path.append("/Libs")    # add path for libraries

+ 59 - 0
main.py

@@ -0,0 +1,59 @@
+"""
+Author:     Tobias Müller
+Date:       30.06.2023
+Version:    1.0
+
+Main File to run on the pico.
+"""
+
+##############################                 Modules                ##############################
+
+from machine import Pin
+from time import sleep_ms
+from Libs.foo import foo
+
+##############################            Global Variables            ##############################
+
+baz = foo()
+
+##############################                 Main                   ##############################
+
+def main():
+    """
+    Main program
+    """
+
+    ##########################           Local Variables            ############################
+
+    led = Pin("LED", Pin.OUT)
+    
+    ##########################                Code                  ############################
+    
+    # test example class
+    baz.bar()
+    
+    # test example function
+    bar()
+
+    # LED blinking
+    while True:
+        led.toggle()
+        sleep_ms(500)
+        led.toggle()
+        sleep_ms(500)
+        
+
+##############################               Functions                ##############################
+
+def bar():
+    """
+    Example function.
+    """
+    
+    ##########################                Code                  ############################
+    print("function bar")
+
+##############################                  Run                   ##############################
+
+if __name__ == "__main__":
+    main()