- Dec 12, 2022
- 357
- 2
[H2]smart watch[/H2]
It is written b4r this watch in the software
[H2]Items needed[/H2]
Arduino uno board
Male to male jumper wire
Seven segment four digits
Arduino board interface cable
I2C interface with DS3231 precision clock module
[H2]Project installation training[/H2]
We install tm1637, rtm1637, rsoftrtc, open the relevant program and the relevant libraries such as
And then we type the following code in the program
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Private DT(8) As Byte
Private rtc As SoftRtc
Public led As Pin
Private tm1637 As TM1637Display
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
led.Initialize(13,led.mode_output)
rtc.Initialize("rtc_Alarm",True)
Log("RTC Initialised")
tm1637.Initialize(3,2)
tm1637.SetBrightness(1,True)...
It is written b4r this watch in the software
[H2]Items needed[/H2]
Arduino uno board
Male to male jumper wire
Seven segment four digits
Arduino board interface cable
I2C interface with DS3231 precision clock module
[H2]Project installation training[/H2]
We install tm1637, rtm1637, rsoftrtc, open the relevant program and the relevant libraries such as
And then we type the following code in the program
Sub Process_Globals
'These global variables will be declared once when the application starts.
'Public variables can be accessed from all modules.
Public Serial1 As Serial
Private DT(8) As Byte
Private rtc As SoftRtc
Public led As Pin
Private tm1637 As TM1637Display
End Sub
Private Sub AppStart
Serial1.Initialize(115200)
Log("AppStart")
led.Initialize(13,led.mode_output)
rtc.Initialize("rtc_Alarm",True)
Log("RTC Initialised")
tm1637.Initialize(3,2)
tm1637.SetBrightness(1,True)...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید