2016年9月2日星期五

MCU 01 : STM32F105 VS STM32F103



前言

研究一下STM32F105和STM32F103的分別。

Overall 的分别

IO Pin 少了。第一感觉到的。哈。

硬件上的分别

不解释太多了。看图最清楚。从datasheet上查到。
硬件差别

2016年9月1日星期四

MCU 00:初探

前言

最近因工作關係,加上自己是電子工程出身,但居然並不熟悉MCU,實在有點難抬起頭來,所以是時候努力研究一下MCU了

其實,MCU一值都有興趣去學,但怪自己懶,不肯花時間去鑽研,怕麻煩。因為要學MCU,事前都要做很多預備的事。
第一件事,就是我應該選哪一種MCU來學?MCU有分好多種,8051系列,PIC,ARM系列,架構不同,且亦都分8bit ,16 bit,32bit的。最近幾年又有什麼Rasperry Pi,Ardinuo等等。我該如何選擇?

2016年7月31日星期日

Lycamobile SIM卡$58 試用


[18Jun2018 更新] 大约半年前不能用了,連不到網,如要買,請三思。

網上查到,聽聞過這張貌似很好的儲值卡,於是試一試。

吸引我的地方是便宜,$18,有3G速度和500MB的數據量。相比起其他的便宜很多。太多數的Plan是>$100,且本身電話,不支持4G網絡.........

如果只是想上上網,玩玩wechat、whatsapp,看看新聞資訊、在車上打發時間,500MB,3G的速度,夠用了。

在家附近問了兩三間的7-11,只有一間有$58的,其他的都是$98。奇怪的是,OK店雖然有,但不能買......店員說公司不給他去買......














2016年7月14日星期四

Excel VBA 2a:Learning MSXML2.XMLHTTP

Introduction

What is MSXML2.XMLHTTP?

It is an object in Excel VBA for sending request to the server. YOu can use this object to get the response from the website.

MSXML2 objects in Excel VBA

There are many object in Excel VBA in the MSXML2
There should be a little diference between them, but I really don’t know the difference. Ha, maybe I will know in the future.
Now, 6.0 is the updated version.
So far, I just MSXML.XMLHTTP is work fine for me in Excel2010
Microsoft.XMLHTTP
Microsoft.XMLHTTP.1.0
Msxml2.ServerXMLHTTP
Msxml2.ServerXMLHTTP.3.0
Msxml2.ServerXMLHTTP.5.0
Msxml2.ServerXMLHTTP.6.0
Msxml2.XMLHTTP.3.0
Msxml2.XMLHTTP.5.0
Msxml2.XMLHTTP.6.0

2016年6月18日星期六

JavaScript 03: Create Event

Create Event

Intro:

一個簡單的實習。
Click一下 Go button,透過JS code generate 一個click event,去click 一下paragraph1 和paragraph2。
當element被click時,text field就會顯示clicked字眼,一石二烏。
GIF:
GIF
Code:
JS Fiddle code: Create Event

2016年5月30日星期一

JavaScript02:Computed Stycle,"getComputedStyle",

原因:

如果想知道某一個element的現時style,就需要用到getComputedStyle(elemnet,xxx) method.
第二個參數xxx一定為null或不寫,如想查的是一般的element。
JS Fiddle:https://jsfiddle.net/js_Test4fun/qejv4yd0/17/

2016年4月29日星期五

Excel VBA : Copy image from website into Excel


Cause:

Wondering how to copy image from a internet source and paste to Excel using the VBA.

There are many examples on the internet if you google "copy image from web vba". However, those are too complicate as I just want to copy from a particular website and particular one image.That's it. No more other things.

So I keep searching on the internet to find a proper method.

One of the method is using "URLDownloadToFile API", it is too complicate for me as I am just a beginner of VBA.....

Then I find a good example from stactoverflow. By using AddPicture(x,x,x,x,) method, it is very easy to copy a image to Excel!

However, you must know the URL of the image first...

Luckily, I know the basic DOM knowlege through my studies on Javascript.



Action:

How to know the URL of the source of the particular image: