12/10/2024 (it)
https://github.com/mcallegari/qlcplus/
Test di compilazione eseguito su vm qemu e immagine raspos: 2023-05-03-raspios-bullseye-armhf-lite.img
12/10/2024 (it)
https://github.com/mcallegari/qlcplus/
Test di compilazione eseguito su vm qemu e immagine raspos: 2023-05-03-raspios-bullseye-armhf-lite.img
import QtQuick 2.0 | |
import QtQuick.Controls 1.4 | |
import "constant.js" as Constants | |
Item { | |
id: root | |
property int thevalue:35 | |
property bool editable: false | |
property int cTEMP_FASE_CALDA: 30 | |
------------------------------------------------------- | |
------------------- LIB NimBLE : | |
> Executing task in folder flr_ble_midi_board: platformio run --target size --environment esp32dev < | |
source /home/ivan/software-projects-free/python-prj/ble_gatt_server/server1/.env/bin/activate | |
Processing esp32dev (platform: espressif32; board: esp32dev; framework: arduino) | |
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
Verbose mode can be enabled via `-v, --verbose` option | |
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html |
(by Ivan Tarozzi - 10/06/2021)
Prendendo spunto da uno scambio di messaggi telegram sul gruppo FabLab Romagna (SMD 2023) e nella speranza che possa essere utile a chiunque voglia cimentarsi nella programmazione python su raspberryPI (o anche solo a chi voglia testare programmi python presi su git**b), riporto alcune indicazioni e considerazioni sull'esperienza appena conclusa e su modi alternativi di affrontare il problema.
Premetto che non sono un super-esperto di python e che le considerazioni che scriverò sono personali e perfettamente opinabili. Sono frutto della mia esperienza, ma non è detto che siano valide per tutti e che non possano essere smentite (anzi, chiunque legga e voglia apportare critiche costruttive o contributi diversi ben venga).
#!/usr/bin/env python3 | |
# This Python file uses the following encoding: utf-8 | |
import sys | |
import os | |
from PySide2.QtCore import QLocale | |
from PySide2.QtGui import QGuiApplication | |
from PySide2.QtQml import QQmlApplicationEngine | |
from app_config import ConfigSerial |
""" | |
A really simple PySide2 application using QtQuick and Material style | |
(it should work on PySide6 too) | |
In order to set a global theme for QtQuick you can use options as described below in the __main__. | |
You can override style properties in single qml files, if you want | |
To change the Material theme (dark, light, system) or other material properties you can use a |
from PySide2.QtWidgets import (QApplication, QWidget, QPushButton, QMainWindow, QSizePolicy, | |
QFrame, QLabel, QLineEdit, QHBoxLayout, QVBoxLayout) | |
from PySide2.QtGui import QIcon, QFont | |
from PySide2 import QtCore, QtGui, QtWidgets | |
from PySide2.QtCore import (QCoreApplication, QPropertyAnimation, QDate, QDateTime, QMetaObject, QObject, QPoint, QRect, QSize, QTime, QUrl, Qt, QEvent) | |
import sys |
Tested on Manjaro Linux | |
========================== | |
$ cat /etc/udev/rules.d/98-xppen.rules | |
ACTION=="add", SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{PRODUCT}=="28bd/904/0", RUN+="/bin/su root -c '/opt/Linux_Pentablet/Pentablet_Driver.sh'" | |
$ cat /opt/Linux_Pentablet/Pentablet_Driver.sh | |
#!/bin/sh | |
HOME=/home/ivan |
///////////////////////////////////////////////////////////////// | |
// ESP32 & Xiaomi Bluetooth sensor v1.00 // | |
// Get the latest version of the code here: // | |
// http://educ8s.tv/esp32-xiaomi-hack // | |
///////////////////////////////////////////////////////////////// | |
#include "SPI.h" | |
#include "Adafruit_GFX.h" //https://github.com/adafruit/Adafruit-GFX-Library | |
#include "Adafruit_ILI9341.h" //https://github.com/adafruit/Adafruit_ILI9341 |
/* ************************************************************************************** | |
* Test using WIFI SmartConfig for ESP8266/ESP32 | |
* | |
* Download android app here: | |
* https://play.google.com/store/apps/details?id=com.cmmakerclub.iot.esptouch&hl=en | |
* | |
* TODO: | |
* [x] store ssid and password to flash | |
* [ ] try saved ssid and password and enter in SmartConfig if fails |