公告版位

沒有痛苦 就沒有收穫
若內容對你有幫助,可以留言讓我知道哦~
有問題想要諮詢可以請至這裡連絡我哦 =>不會就放這邊

 


fatal error: Adafruit_Sensor.h: No such file or directory #include <Adafruit_Sensor.h>

很多朋友來問這問題,Arduino錯誤,No such file or directory #include <Adafruit_Sensor.h>

解決方法我就PO在這囉

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

Turbo C/C++ 以產生10個介於0~99之間的亂數為例

#include<stdio.h>
#include<stdlib.h>
int main(){
        int a,times=0;
        randomize();
        while(times<=10){
                a=random(100);
                printf("%d\n",a);
                times++;
        }
puts("\n");
return 0;
}

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

Error (114016): Out of memory in module quartus_map.exe (4904 megabytes used)

記憶體不足

 

JL8051 發表在 痞客邦 留言(0) 人氣()

ASIC Application-Specific Integrated Circuit
ASP Addressable Scan Port
ATE Automatic Test Equipment

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

今天要介紹這套UART壓力測試軟體,對於燒機很有幫助的軟體,

進入網站 https://www.aggsoft.com/com-port-stress-test.htm

先把它這個程式下載加安裝,之後會有一個名稱叫做,COM Port Stress Test

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

最近Richart APP每次到中午連線很慢,好不容易感覺有登入,但看似有登入進去,資訊跳出的很慢,接著就斷線了XD,

這對於需要立即轉帳的人會很不便,希望台新銀行可以盡快改善。

2019/12/30

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

OTQ-128S-0.4-001 ENPLAS 測試腳座

 

https://item.taobao.com/item.htm?spm=a230r.1.14.1.7cb5374b5NIp68&id=541661538228&ns=1&abbucket=14#detail

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

1bit 時間等於 1/鮑率? 如果是115200bit/s

等於1/115200是1bit時間,那一個UART時間是 ?

一個UART封包長度總共有10bit,(Start bit  +8 bit data + End bit)

文章標籤

JL8051 發表在 痞客邦 留言(1) 人氣()

我使用WebBrowser來搜尋網頁,但遇到URL解碼的問題,

像是輸入"我喜歡你"編譯成網頁code後會是 "%RTYUIJKHJK" 

底下這份程式,就是在幹這件事情

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

最近在研究USB HID 使用VB撰寫,以下先提供範例.

HID Host Code in VB .Net (VB範例檔案)

https://www.microchip.com/forums/m418034.aspx

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

以下為我常用的指令

1.快速輸入Thanks
::/tk::Thanks.

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

輪詢(Polling): 

想像成老師在上課,老師每間隔一段時間就去問小明有沒有問題

這不僅浪費老師的時間,小明有疑問卻不能主動提出

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

最近發現C有個寫法很怪

明明

int *a;
文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

Q1:預處理器 (Preprocessor),用預處理指令 #define 宣告一個常數,用以表示 1 年中有多少秒 (忽略閏年問題)。


ANS:#define SECONDS_PER_YEAR (60 * 60 * 24 * 365)UL

文章標籤

JL8051 發表在 痞客邦 留言(2) 人氣()

以程式設計方式放置控制項

Button1.Location = New Point(100, 100)

 

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage

範例

Dim PictureBox1 As New PictureBox()
Dim WithEvents Button1 As New Button

<STAThread()> _
Public Shared Sub Main()
    Application.EnableVisualStyles()
    Application.Run(New Form1())
End Sub

Private Sub InitializePictureBoxAndButton()

    Me.Controls.Add(PictureBox1)
    Me.Controls.Add(Button1)
    Button1.Location = New Point(175, 20)
    Button1.Text = "Stretch"

    ' Set the size of the PictureBox control.
    Me.PictureBox1.Size = New System.Drawing.Size(140, 140)

    'Set the SizeMode to center the image.
    Me.PictureBox1.SizeMode = PictureBoxSizeMode.CenterImage

    ' Set the border style to a three-dimensional border.
    Me.PictureBox1.BorderStyle = BorderStyle.Fixed3D

    ' Set the image property.
    Me.PictureBox1.Image = New Bitmap(GetType(Button), "Button.bmp")
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, _
    ByVal e As System.EventArgs) Handles Button1.Click
    ' Set the SizeMode property to the StretchImage value.  This
    ' will enlarge the image as needed to fit into
    ' the PictureBox.
    PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage
End Sub
文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

VB語法  Try...Catch...Finally 範例

Try
    Process.Start("http://www.microsoft.com")
Catch ex As Exception
    MsgBox("Can't load Web page" & vbCrLf & ex.Message)
End Try

 

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

VB  Select...Case語法範例   https://docs.microsoft.com/zh-tw/dotnet/visual-basic/language-reference/statements/select-case-statement

Dim number As Integer = 8
Select Case number
    Case 1 To 5
        Debug.WriteLine("Between 1 and 5, inclusive")
        ' The following is the only Case clause that evaluates to True.
    Case 6, 7, 8
        Debug.WriteLine("Between 6 and 8, inclusive")
    Case 9 To 10
        Debug.WriteLine("Equal to 9 or 10")
    Case Else
        Debug.WriteLine("Not between 1 and 10, inclusive")
End Select

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()

最近,在做SPI 燒寫,為了要確認,是否燒錄正確,需要工具幫我們檢視

因為我的Flash是2Mbit大小,這隻程式很佛心所有的大小都有 如下

文章標籤

JL8051 發表在 痞客邦 留言(2) 人氣()

如果常常在比對bin檔,我覺得這套軟體很好用,叫做 Compare It! 4.2

這軟體的優點是,會把Address的位址對應很整齊,我嘗試過其他的compare軟體,位址兩邊都不相同而且會亂跑,

下載網頁  https://www.grigsoft.com/files.htm

文章標籤

JL8051 發表在 痞客邦 留言(0) 人氣()