發表文章

目前顯示的是 1月, 2017的文章

樹莓派 Retropie 遊戲金手指 (Setup Cheats in Retropie)

圖片
筆者是參考此影片: Please refers to this tutorial video: 在啟用RetroPie的內建金手指功能之前,我們要先知道RetroPie的一些內建快捷鍵操作方式: Before applying cheats on Retropie, let's take a look at the default hotkeys configuration: 快捷鍵(Hotkeys) 功能(Action) 選擇(Select)+開始(Start) 離開(Exit) 選擇(Select)+右上方按鈕(Right Shoulder) 存檔(Save) 選擇(Select)+左上方按鈕(Left Shoulder) 讀檔(Load) 選擇(Select)+向右按鈕(Right) 增加存檔編號(Input State Slot Increase) 選擇(Select)+向左按鈕(Left) 減少存檔編號( Input State Slot Decrease) 選擇(Select)+X按鈕 RGUI 選單(Menu) 選擇(Select)+B按鈕 重置(Reset) 此部分的詳細說明可參考官方的搖桿設定說明: https://github.com/retropie/retropie-setup/wiki/First-Installation#configure-controllers Please go to  https://github.com/retropie/retropie-setup/wiki/First-Installation#configure-controllers  for more details. 底下以任天堂泡泡龍來說明。 Take NES Bubble Bobble for example. 進入到泡泡龍遊戲後,按下選擇+X按鈕來顯示RGUI選單,選擇 Online Updater Press Select + X buttons to show RGUI menu and select  Online Updater 選擇  Update Cheats Select  Update Cheats ...

Running RTAndroid on Raspberry Pi 3 在樹莓派3上運行Android

圖片
本篇文章主要參考資料Youtube上的教學影片: How To Install Android Android Nougat 7.0 On Raspberry Pi 3 Using Linux By referring to this Youtube video: How To Install Android Android Nougat 7.0 On Raspberry Pi 3 Using Linux . Raspberry Pi 3 could be running on Android. 不同的是,筆者是從USB隨身碟進入 Lubuntu 系統,此部分是使用 Rufus 軟體製作可從USB隨身碟開機的方式,方法可參考此篇文章: How to create a bootable USB stick on Windows 。 By the way, you can use  Rufus  to create a bootable  Lubuntu  USB stick. [Please refer to this article:  How to create a bootable USB stick on Windows ] 製作好USB隨身碟後,按照 教學影片 ,一步一步做就可得到類似以下圖片的結果,此文使用的RTAndroid版本為 rtandroid-aosp-7.1-20170118-rpi3 ,看來Google Play Service會不時當機。 Next, following the steps in the  video . RTAndroid 7.1-20170118 is running on Raspberry Pi 3. But, Google Play Service is stopped sometimes. 若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。 If you like this post, please click the ads on the blog or  buy me a coffee . Thank you very much.

MIT App Inventor 圖片檔大小限制

圖片
注意以下資訊尚未在Android 6.1.x 以上的實機測試,已用Android 6.0.1實機測試過。 最近發現用MIT App Inventor開發出來的程式「 雲林SONG 藍牙小夜燈 」,會造成在某些版本的Android系統異常(目前查出是Android 6.x.x以上),出現類似如下圖的訊息: 於是用 Genymotion [Android 模擬器] 來重現最近遇到的Android系統異常問題 ,原因居然是 App圖片檔的檔案大小過大與Android版本為6.0以上 時,就會讓Android系統出現異常而無法使用手機,也就是說用MIT App Inventor開發Android App時,需要注意圖片檔的大小,預防Android系統異常。 錯誤訊息就是記憶體不足 詳細說明可參考MIT App Inventor官網對圖片檔的說明: http://ai2.appinventor.mit.edu/reference/other/usingImages.html 唉,又是個不怎麼好的經驗!這個問題造成一些人的Android手機須重置來恢復原廠設定,才能繼續使用手機。 筆者開始對用圖片做畫面的美工感到害怕了... 開發Android App的人須特別注意這一點。 若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。

簡易電路單元一:LED亮度(Control a LED lightness without Arduino)

圖片
此單元要介紹如何設計控制一顆LED亮度的電路。 This tutorial will design a circuit that can change a LED lightness. 硬體材料(Materials): 1. LED燈 x 1 2. B10K variable resistor可變電阻 x 1 3. 160孔麵包板 small breadboard  x 1 4. 電池 battery(本例用12V電池 12V in this tutorial) 5. 單節電池盒 battery holder (本例用12V電池盒 12V battery holder in this tutorial) 硬體電路(Circuit): 完成圖(The finished circuit): 示範影片(Demo video): 延伸練習(Practice): 使用開關控制LED燈的亮滅,無亮度調整 (Use a button to turn on/off a LED)。 多幾顆不一樣顏色的LED燈 (Try multiple LEDs with different colors)。 換成三色(RGB)LED燈 ( Change to a RGB LED )。 用一些東西將LED燈蓋住,例如塑膠袋、棉花、壓克力、彩色塑膠片等,看看會有什麼效果。 (Cover the LED with different objects. For example, plastic bags, cottons, acrylic box, etc.) 若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。 If you like this post, please click the ads on the blog or  buy me a coffee . Thank you very much.

mBlock 單元二十:藍牙雲朵燈 ( mBlock Unit 20: Cloud Light )

圖片
本文為 mBlock 單元十八:藍牙小夜燈 的延續,變成可變色的雲朵燈! 硬體材料: 1. Arduino NANO 板子 x 1 2. Mini-B USB 連接線 x 1 3. RGB三色LED 燈 x 1 4. 220 歐姆電阻 x 3 5. 母對母杜邦線 x 4 6. 公對母杜邦線 x 4 7. 400孔麵包板 x 1 8. 藍牙HC-06 x 1 9. 1200cc寶特瓶 x 1 10. 棉花 11. 橡皮筋多條 12. 黑色膠帶 ( 用來擋住Nano與藍芽模組的指示燈 ) 13. 行動電源 硬體電路: 三色LED接線,公對母杜邦線 紅色燈接 --> Nano D9 綠色燈接 --> Nano D10 藍色燈接 --> Nano D11 共陽極接 --> Nano 5V 藍牙HC-06,母對母杜邦線 HC-06 TX  --> Nano RX (D1) HC-06 RX  --> Nano TX (D0) HC-06 VCC --> Nano 3.3V HC-06 GND --> Nano GND 完成圖: Nano有電源指示燈,用黑色膠帶擋住 藍牙模組也有電源指示燈,用黑色膠帶擋住 未放進寶特瓶 放進寶特瓶 有光源下的雲朵燈 Arduino程式積木: Android 手機App檔案: 1. MIT App Inventor程式: https://goo.gl/CKoxH0 2. Android APK 下載處: https://goo.gl/Vdrsjl 3.  Google Play: https://goo.gl/hkU8bE 示範影片: 延伸的應用 想一想,例如: 1. 音感雲朵燈(請參考 mBlock 單元八:隨音樂舞動的音感LED燈 )。 2. 光感雲朵燈(請參考 mBlock 單元五:使用光敏電阻控制 LED 燈亮度 )。 除此以上兩種外,還可以有什麼應用呢? 若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。