Skip to contentSkip to conversation

python-rtimu: Add recipe to support RTIMULib

PATCH In review Leon Anavi 3 participants 9 messages Dec 20, 2015 – Jan 11, 2016

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/2 python-rtimu: Add recipe to support RTIMULib

RTIMULib is a C++ and Python library that makes it easy to use 9-dof and 10-dof IMUs with embedded Linux systems. Python module for Raspberry Pi Sense HAT depends on it.

Python module python-rtimu uses the source code from the GitHub repository of RPi-Distro.

---
 recipes-devtools/python/python-rtimu_git.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 recipes-devtools/python/python-rtimu_git.bb
recipes-devtools/python/python-rtimu_git.bb new file +12 -0
new file mode 100644
index 0000000..9d2f249
@@ -0,0 +1,12 @@
+DESCRIPTION = "RTIMULib is a C++ and Python library that makes it easy to use 9-dof and 10-dof IMUs with embedded Linux systems"
+HOMEPAGE = "https://github.com/RPi-Distro/RTIMULib/"
+SECTION = "devel/python"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://../../LICENSE;md5=96cdecb41125f498958e09b72faf318e"
+
+SRC_URI = "git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master "
+SRCREV = "b949681af69b45f0f7f4bb53b6770037b5b02178"
+
+S = "${WORKDIR}/git/Linux/python/"
+
+inherit setuptools
Signature · 1 line
2.5.0
author
#1 lore raw

PATCH 2/2 python-sense-hat: Add recipe to support Raspberry Pi Sense HAT

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission. This recipe provides the officially supported library for the Sense HAT with access to all of the on-board sensors and the LED matrix.

---
 recipes-devtools/python/python-sense-hat_2.1.0.bb | 31 +++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 recipes-devtools/python/python-sense-hat_2.1.0.bb
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +31 -0
new file mode 100644
index 0000000..0665536
@@ -0,0 +1,31 @@
+SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission"
+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"
+
+SRCNAME = "sense-hat"
+
+SRC_URI = "https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca"
+SRC_URI[sha256sum] = "c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DEPENDS_${PN} += " \
+		jpeg \
+		jpeg-dev \
+		zlib \
+		zlib-dev \
+		freetype \
+		freetype-dev \
+		"
+
+RDEPENDS_${PN} += " \
+		python-numpy \
+		python-rtimu \
+		python-imaging \
+		"
Signature · 1 line
2.5.0
#2 lore raw

Re: [meta-raspberrypi][PATCH 2/2] python-sense-hat: Add recipe to support Raspberry Pi Sense HAT

Quoted 25 lines · Leon Anavi

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission. This recipe provides the officially supported library for the Sense HAT with access to all of the on-board sensors and the LED matrix.

---
 recipes-devtools/python/python-sense-hat_2.1.0.bb | 31 +++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 recipes-devtools/python/python-sense-hat_2.1.0.bb
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +8 -0
new file mode 100644
index 0000000..0665536
@@ -0,0 +1,31 @@
+SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission"
+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"
+
+SRCNAME = "sense-hat"
+

recipes-devtools/python/python-sense-hat_2.1.0.bb line 18

Quoted 10 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +10 -0
+SRC_URI = "https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+
+SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca"
+SRC_URI[sha256sum] = "c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DEPENDS_${PN} += " \

Just use DEPENDS here and remove -dev entries below, its implied with DEPENDS

Quoted 21 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +13 -1
+               jpeg \
+               jpeg-dev \
+               zlib \
+               zlib-dev \
+               freetype \
+               freetype-dev \
+               "
+
+RDEPENDS_${PN} += " \
+               python-numpy \
+               python-rtimu \
+               python-imaging \
+               "
--

2.5.0

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

author
#3 lore raw

Re: [meta-raspberrypi][PATCH 2/2] python-sense-hat: Add recipe to support Raspberry Pi Sense HAT

Quoted 35 lines · Khem Raj
Quoted 34 lines · Leon Anavi

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission. This recipe provides the officially supported library for the Sense HAT with access to all of the on-board sensors and the LED matrix.

---
 recipes-devtools/python/python-sense-hat_2.1.0.bb | 31 
+++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 recipes-devtools/python/python-sense-hat_2.1.0.bb
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +1 -0
new file mode 100644
index 0000000..0665536
@@ -0,0 +1,31 @@
+SUMMARY = "Python module to control the Raspberry Pi Sense HAT used 

in the Astro Pi mission"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = 

"file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+
+SRCNAME = "sense-hat"
+
+SRC_URI = 

"https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +3 -0
+
+SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca"
+SRC_URI[sha256sum] = 

"c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"

Quoted 8 lines

recipes-devtools/python/python-sense-hat_2.1.0.bb line 18

Quoted 6 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +6 -0
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DEPENDS_${PN} += " \

Just use DEPENDS here and remove -dev entries below, its implied with DEPENDS

Done. I resubmitted this patch again. Thank you for the help.

Best regards, Leon

Quoted 22 lines
Quoted 22 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +13 -1
+               jpeg \
+               jpeg-dev \
+               zlib \
+               zlib-dev \
+               freetype \
+               freetype-dev \
+               "
+
+RDEPENDS_${PN} += " \
+               python-numpy \
+               python-rtimu \
+               python-imaging \
+               "
--

2.5.0

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Signature · 1 line
http://anavi.org/
#4 lore raw

Re: [meta-raspberrypi][PATCH 2/2] python-sense-hat: Add recipe to support Raspberry Pi Sense HAT

Quoted 51 lines · Leon Anavi
Quoted 40 lines · Khem Raj
Quoted 38 lines · Leon Anavi

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission. This recipe provides the officially supported library for the Sense HAT with access to all of the on-board sensors and the LED matrix.

---
 recipes-devtools/python/python-sense-hat_2.1.0.bb | 31
+++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 recipes-devtools/python/python-sense-hat_2.1.0.bb
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +1 -0
new file mode 100644
index 0000000..0665536
@@ -0,0 +1,31 @@
+SUMMARY = "Python module to control the Raspberry Pi Sense HAT used in

the Astro Pi mission"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM =

"file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+
+SRCNAME = "sense-hat"
+
+SRC_URI =

"https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +3 -0
+
+SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca"
+SRC_URI[sha256sum] =

"c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +2 -0
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
Quoted 8 lines

recipes-devtools/python/python-sense-hat_2.1.0.bb line 18

Quoted 4 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+
+inherit setuptools
+
+DEPENDS_${PN} += " \

Just use DEPENDS here and remove -dev entries below, its implied with DEPENDS

Quoted 2 lines

Done. I resubmitted this patch again. Thank you for the help.

Looks good now. Thx

Quoted 29 lines

Best regards, Leon

Quoted 17 lines
Quoted 17 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +13 -1
+               jpeg \
+               jpeg-dev \
+               zlib \
+               zlib-dev \
+               freetype \
+               freetype-dev \
+               "
+
+RDEPENDS_${PN} += " \
+               python-numpy \
+               python-rtimu \
+               python-imaging \
+               "
--

2.5.0

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

--
http://anavi.org/

author
#5 lore raw

Re: [meta-raspberrypi][PATCH 2/2] python-sense-hat: Add recipe to support Raspberry Pi Sense HAT

Quoted 54 lines · Khem Raj
Quoted 53 lines · Leon Anavi
Quoted 50 lines · Khem Raj
Quoted 38 lines · Leon Anavi

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission. This recipe provides the officially supported library for the Sense HAT with access to all of the on-board sensors and the LED matrix.

---
 recipes-devtools/python/python-sense-hat_2.1.0.bb | 31
+++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 

recipes-devtools/python/python-sense-hat_2.1.0.bb

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +1 -0
new file mode 100644
index 0000000..0665536
@@ -0,0 +1,31 @@
+SUMMARY = "Python module to control the Raspberry Pi Sense HAT used 

in
the Astro Pi mission"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM =

"file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+
+SRCNAME = "sense-hat"
+
+SRC_URI =

"https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +3 -0
+
+SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca"
+SRC_URI[sha256sum] =

"c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"

recipes-devtools/python/python-sense-hat_2.1.0.bb line 18

Quoted 6 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +6 -0
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DEPENDS_${PN} += " \

Just use DEPENDS here and remove -dev entries below, its implied with DEPENDS

Quoted 4 lines
Quoted 2 lines

Done. I resubmitted this patch again. Thank you for the help.

Looks good now. Thx

It was my pleasure. Thanks again for the feedback.

Btw a quick and easy way to test the result on Raspberry Pi with a Sense HAT:

wget https://github.com/leon-anavi/python-sense-hat-scripts/archive/master.zip
unzip master.zip
cd python-sense-hat-scripts-master/
python python-sense-hat-text.py

If everything is OK you should see red text "Hello" scrolling on the LED matrix of the Sense HAT.

Best regards,
Leon

Quoted 30 lines
Quoted 30 lines

Best regards, Leon

Quoted 17 lines
Quoted 17 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +13 -1
+               jpeg \
+               jpeg-dev \
+               zlib \
+               zlib-dev \
+               freetype \
+               freetype-dev \
+               "
+
+RDEPENDS_${PN} += " \
+               python-numpy \
+               python-rtimu \
+               python-imaging \
+               "
--

2.5.0

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

--
http://anavi.org/

Signature · 1 line
http://anavi.org/
author
#6 lore raw

Re: [meta-raspberrypi][PATCH 2/2] python-sense-hat: Add recipe to support Raspberry Pi Sense HAT

Hi,

Kind reminder that I am still waiting for feedback regarding these two patches for Raspberry Pi Sense HAT.

Thanks, Leon

Quoted 105 lines · Leon Anavi
Quoted 54 lines · Khem Raj
Quoted 53 lines · Leon Anavi
Quoted 50 lines · Khem Raj
Quoted 38 lines · Leon Anavi

Python module to control the Raspberry Pi Sense HAT used in the Astro Pi mission. This recipe provides the officially supported library for the Sense HAT with access to all of the on-board sensors and the LED matrix.

---
 recipes-devtools/python/python-sense-hat_2.1.0.bb | 31
+++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 

recipes-devtools/python/python-sense-hat_2.1.0.bb

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +1 -0
new file mode 100644
index 0000000..0665536
@@ -0,0 +1,31 @@
+SUMMARY = "Python module to control the Raspberry Pi Sense HAT 

used in
the Astro Pi mission"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+HOMEPAGE = "https://github.com/RPi-Distro/python-sense-hat"
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM =

"file://LICENCE.txt;md5=d80fe312e1ff5fbd97369b093bf21cda"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +4 -0
+
+SRCNAME = "sense-hat"
+
+SRC_URI =

"https://pypi.python.org/packages/source/s/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"

recipes-devtools/python/python-sense-hat_2.1.0.bb new file +3 -0
+
+SRC_URI[md5sum] = "71217f15ea963040f06e2f50722186ca"
+SRC_URI[sha256sum] =

"c6c76707c0ea514e4b0f1f96f1b5b79755875891aae037df7434b6aad7b9dbca"

recipes-devtools/python/python-sense-hat_2.1.0.bb line 18

Quoted 6 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +6 -0
+
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+DEPENDS_${PN} += " \

Just use DEPENDS here and remove -dev entries below, its implied with DEPENDS

Quoted 4 lines
Quoted 2 lines

Done. I resubmitted this patch again. Thank you for the help.

Looks good now. Thx

It was my pleasure. Thanks again for the feedback.

Btw a quick and easy way to test the result on Raspberry Pi with a Sense HAT:

wget https://github.com/leon-anavi/python-sense-hat-scripts/archive/master.zip
unzip master.zip
cd python-sense-hat-scripts-master/
python python-sense-hat-text.py

If everything is OK you should see red text "Hello" scrolling on the LED matrix of the Sense HAT.

Best regards,
Leon

Quoted 30 lines
Quoted 30 lines

Best regards, Leon

Quoted 17 lines
Quoted 17 lines
recipes-devtools/python/python-sense-hat_2.1.0.bb new file +13 -1
+               jpeg \
+               jpeg-dev \
+               zlib \
+               zlib-dev \
+               freetype \
+               freetype-dev \
+               "
+
+RDEPENDS_${PN} += " \
+               python-numpy \
+               python-rtimu \
+               python-imaging \
+               "
--

2.5.0

Quoted 5 lines
Quoted 5 lines

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

--
http://anavi.org/

Signature · 1 line
http://anavi.org/
#7 lore raw
In reply to Leon Anavi

Hi,

Quoted 4 lines · Leon Anavi

RTIMULib is a C++ and Python library that makes it easy to use 9-dof and 10-dof IMUs with embedded Linux systems. Python module for Raspberry Pi Sense HAT depends on it.

Quoted 8 lines

Python module python-rtimu uses the source code from the GitHub repository of RPi-Distro.

---
 recipes-devtools/python/python-rtimu_git.bb | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 recipes-devtools/python/python-rtimu_git.bb

Merged patch to master with some minor formatting tweaks (removed extra space in SRC_URI and broke DESCRIPTION line around 90 chars).

Thanks,
--
Andrei Gherzan

author
#8 lore raw

Hi Andrei,

Quoted 11 lines · Andrei Gherzan

Hi,

Quoted 7 lines · Leon Anavi

RTIMULib is a C++ and Python library that makes it easy to use 9-dof and 10-dof IMUs with embedded Linux systems. Python module for Raspberry Pi Sense HAT depends on it.

Python module python-rtimu uses the source code from the GitHub repository of RPi-Distro.

Quoted 9 lines
Quoted 5 lines

---
recipes-devtools/python/python-rtimu_git.bb [1] | 12 ++++++++++++

1 file changed, 12 insertions(+)

create mode 100644 recipes-devtools/python/python-rtimu_git.bb [1]

Merged patch to master with some minor formatting tweaks (removed extra space in SRC_URI and broke DESCRIPTION line around 90 chars).

Cool :) Thank you for merging my Raspberry Pi Sense HAT patches.

Best regards, Leon

Quoted 7 lines

Thanks,
--
Andrei Gherzan

Links:
------
[1] http://python-rtimu_git.bb

Signature · 1 line
http://anavi.org/