raspberry-pi2

How can I compile Rust code to run on a Raspberry Pi 2?

拥有回忆 提交于 2019-12-03 03:09:54
问题 I recently acquired a Raspberry PI 2 and I want to run a Rust program on it. Is there a guide/instructions how to cross compile Rust programs on Raspberry PI 2? I've heard about running Rust on RPi or Arduino, although not recently. I want a Hello World equivalent Rust program running on Raspberry Pi 2. It doesn't have to be a literal Hello World program, just something that is of similar low complexity. 回答1: We have rustup now. $ rustup target add arm-unknown-linux-gnueabihf $ sudo apt-get

How to access Network Share from Raspberry Pi running IoT Core in UWP app

我只是一个虾纸丫 提交于 2019-12-02 22:42:08
I have a c# UWP app that I'm intending to run on a Raspberry PI with Windows 10 IoT Core. The problem I have is when I try to connect to a UNC share to copy some files. The network is just a home network with local user credentials, share is on another computer on the same network. When running the app locally I can just use await StorageFolder.GetFolderFromPathAsync(@"\\share\folder"); to connect to the share and this works fine, I'm assuming this is because the credentials I'm using are saved on the local machine. When ran on the RPi the error received is: "The system cannot find the file

(Cross-)Compiling Swift for Raspberry PI

送分小仙女□ 提交于 2019-12-02 18:39:52
Swift is now Open Source. Did anyone tried compiling Swift for a Raspberry PI? I started to do, but my 8 GB SD card seems to be too small for it ;) Is it possible to cross compile it from Ubuntu? A 8GB SD Card works ok, but you'll need to extend the root volume. I have it working and the used space on /dev/root partition is around 3.1GB. The steps below are based on the blog post by Andrew Madsen with a little extra focus on the steps inside fdisk . Get Ubuntu Download an image of Ubuntu 14.04 for Raspberry Pi 2 from finnie.org and copy it onto the SD card. Boot the Raspberry Pi. Change the

How can I compile Rust code to run on a Raspberry Pi 2?

孤者浪人 提交于 2019-12-02 16:39:36
I recently acquired a Raspberry PI 2 and I want to run a Rust program on it. Is there a guide/instructions how to cross compile Rust programs on Raspberry PI 2? I've heard about running Rust on RPi or Arduino, although not recently. I want a Hello World equivalent Rust program running on Raspberry Pi 2. It doesn't have to be a literal Hello World program, just something that is of similar low complexity. kazhik We have rustup now. $ rustup target add arm-unknown-linux-gnueabihf $ sudo apt-get install gcc-arm-linux-gnueabihf $ echo '[target.arm-unknown-linux-gnueabihf]' >> ~/.cargo/config $

JAVA - Raspberry-pi - Application as a service who start then stop immediately

若如初见. 提交于 2019-12-02 08:44:04
I need to start a Java app on raspberry's startup, but i can't figure how?! I've retreive the PbxMan's script to run it as a service : https://stackoverflow.com/a/21283530/5066919 I've made a simple script that launch the app in background I've pushed it in a crontab at reboot... I play a sound on the first line of the main and in the addShutdownHook(). So i can hear that each time, the app start then stop immediately... Of course i don't have this problem when I launch it in CLI! :@ Problem solved, I post what i've found if some one have the same ;) My app run a Thread, waiting for keyboards

Textarea slow for logging

烈酒焚心 提交于 2019-12-02 06:26:06
问题 I have a Qt application and I'd like to show some log. I use a TextArea . However, if the log is large or the events come too fast the GUI can't draw Textarea fast enough. I have analyzed this problem with Qt Creator (QML Profiler) and if the log is large it takes 300 ms to draw the GUI. I use this software on a Raspberry Pi2. Any ideas how to solve this? Should I use other QML controls? Thanks. QML code: TextArea { text: appHandler.rawCommunication readOnly: true } C++ code: Q_PROPERTY

How to display a clock with the current time in a Windows Core IoT app?

一笑奈何 提交于 2019-12-02 03:18:35
I am trying to create an Windows 10 IoT app running headless on a Raspberry Pi 2. Everything is set up correctly and I am able to debug my from Visual Studio using the Raspberry Pi as the remote machine for debugging. Now I want to add a clock on the app page but I can't figure out how to keep the displayed time updated. In plain old C# I would use a BackgroudWorker or something similar to keep the displayed time current, but that type is not available in UWP. I have been looking into "Create and register a background task" on MSDN but that seems to be way to complex, just to be able to keep

Windows IoT - Zebra Bluetooth Printer

╄→гoц情女王★ 提交于 2019-12-02 02:20:27
问题 I have two Zebra Bluetooth Printers, a MZ220 and iMZ220. The "only" thing I would do, is to print text with a Windows IoT System on a Raspberry Pi 2. Nothing more ;) Example: Line1 " Hello World" Line2 "---------------" Line3 "Date:01.01.2016" Line4 "Time: 18:00" The USB Bluetooth Adapter BTA-403 from ORICO, I guess works well. With the Explorer I can connect to the Printer. But, what next? How do I connect to the Printer? How do I say to the Printer print "Hello World!" Thanks! 回答1: These

Textarea slow for logging

混江龙づ霸主 提交于 2019-12-02 00:50:19
I have a Qt application and I'd like to show some log. I use a TextArea . However, if the log is large or the events come too fast the GUI can't draw Textarea fast enough. I have analyzed this problem with Qt Creator (QML Profiler) and if the log is large it takes 300 ms to draw the GUI. I use this software on a Raspberry Pi2. Any ideas how to solve this? Should I use other QML controls? Thanks. QML code: TextArea { text: appHandler.rawCommunication readOnly: true } C++ code: Q_PROPERTY(QString rawCommunication READ rawCommunication WRITE setrawCommunication NOTIFY rawCommunicationChanged)

OpenCV NoneType object has no attribute shape

好久不见. 提交于 2019-12-01 21:51:42
Hello I'm working on Raspberry Pi with OpenCV. I want to try a tutorial which is ball tracking in link http://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/ But when I compile it, i get an error: 'NoneType' object has no attribute 'shape'. What should I do? It means that somewhere a function which should return a image just returned None and therefore has no shape attribute. Try "print img" to check if your image is None or an actual numpy object. I faced the same problem today, please check for the path of the image as mentioned by cybseccrypt. After imread, try printing the