issue121:python
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue121:python [2017/05/29 16:53] – créée auntiee | issue121:python [2017/06/11 14:14] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Last month, we started a bluetooth enabled Temperature/ | + | **Last month, we started a bluetooth enabled Temperature/ |
I’ll include the Fritzing wiring diagram just in case you missed it last month. | I’ll include the Fritzing wiring diagram just in case you missed it last month. | ||
- | As I said last month, the VCC positive voltage into the bluetooth module is 3.3VDC from the Arduino. If you use the 5VDC, you will most likely destroy the bluetooth module. | + | As I said last month, the VCC positive voltage into the bluetooth module is 3.3VDC from the Arduino. If you use the 5VDC, you will most likely destroy the bluetooth module.** |
- | The Code | + | Le mois dernier, nous avons commencé un programme avec le capteur de température/ |
+ | |||
+ | Je rajoute le schéma de câblage Fritzing, juste au cas où vous l' | ||
+ | |||
+ | Comme je l'ai dit le mois dernier, la tension positive d' | ||
+ | |||
+ | **The Code | ||
With just a glance, you should be able to see that the script for this month (https:// | With just a glance, you should be able to see that the script for this month (https:// | ||
- | Herein the handleBluetooth routine to tie together the DHT data and send it along whenever it is requested. I purposely over-coded the routine so you have more information than needed. There really isn’t a need to have the delay after each and every case. Just one at the end would have done just fine. I also didn’t need to duplicate the code for reading/ | + | Herein the handleBluetooth routine to tie together the DHT data and send it along whenever it is requested. I purposely over-coded the routine so you have more information than needed. There really isn’t a need to have the delay after each and every case. Just one at the end would have done just fine. I also didn’t need to duplicate the code for reading/ |
- | The sketch is available on Pastebin at https:// | + | Le code |
+ | |||
+ | D'un coup d' | ||
+ | |||
+ | Voici la routine handleBluetooth qui rassemble les données du DHT et les envoie lorsqu' | ||
+ | |||
+ | **The sketch is available on Pastebin at https:// | ||
As a bit of a side comment, you might wonder why we are still concentrating on Python as a programming language. TechRepublic just recently published a piece on the top 3 programming languages to learn. Python is #3. You can find the article at http:// | As a bit of a side comment, you might wonder why we are still concentrating on Python as a programming language. TechRepublic just recently published a piece on the top 3 programming languages to learn. Python is #3. You can find the article at http:// | ||
- | Since I’m in the process of moving, I will leave the RPi and Python side of things until I get somewhat settled. Until then, have fun. | + | Since I’m in the process of moving, I will leave the RPi and Python side of things until I get somewhat settled. Until then, have fun.** |
+ | |||
+ | La maquette est disponible sur Pastebin à https:// | ||
+ | |||
+ | Un commentaire en aparté : vous pouvez vous demander pourquoi nous nous concentrons encore sur un langage de programmation comme Python. TechRepublic a publié très récemment un article sur les 3 plus importants langages de programmation à apprendre. Python est n° 3. Vous pouvez trouver cet article à http:// | ||
+ | |||
+ | Comme je suis sur le point de déménager, |
issue121/python.1496069606.txt.gz · Dernière modification : 2017/05/29 16:53 de auntiee