自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 资源 (6)
  • 收藏
  • 关注

原创 ubuntu搭建自己gitlab服务器

依赖组件:ruby 1.9.3+,MySQL,git,redis, Sidekiq下载安装ssh启动ssh服务安装gitlib整合包

2021-11-07 12:13:35 290

原创 ubuntu安装截图软件shutter

下载安装sudo apt-get install shutter设置快捷键system setting ->Keyboard->Shortcuts->Custom Shortcuts->加号->name:Shutter SelectCommand:shutter -s

2021-11-01 22:54:57 126

原创 HC32F460基于Keil MDK 移植 RT-Thread Nano

由于大环境影响目前正在更换使用HC32F460 ,HC32F460各个模块也在根据厂家demo摸索移植中,rtos也准备替换为更给力的rtthead。记录一下自己学习移植rtt过程。软件:根据厂家demo重新新建工程,工程中包含了gpio、usart。硬件:gpio/* GREEN_LED Port/Pin definition */#define GREEN_LED_PORT (PortE)#define GREEN_LED_PIN (Pin00)/*...

2021-08-12 21:42:23 1122

原创 Ubuntu16.04配置根文件系统

交叉编译器:gcc-linaro4.9.4编译器路径:/usr/local/arm/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/binnfs挂载路径:/home/arjun/linux/nfs/ubunturootfs客户端地址:192.168.8.60服务器地址:192.168.8.57硬件主芯片:imx6ull存储:...

2020-03-09 22:01:04 2546 1

原创 buildroot配置根文件系统

环境:ubuntu16.04交叉编译器:gcc-linaro4.9.41.打开图形界面配置make menuconfig出现一下错误*** Unable to find the ncurses libraries or the*** required header files.*** 'make menuconfig' requires the ncurses libr...

2020-03-05 20:37:48 4026

转载 12864使用整体刷屏方式

存放格式如下.[0]0 1 2 3 ... 127 page0[1]0 1 2 3 ... 127 page1[2]0 1 2 3 ... 127 page2[3]0 1 2 3 ... 127 page3[4]0 1 2 3 ... 127 page4[5]0 1 2 3 ... 127 page5[6]0 1 2 3 ... 127 p...

2020-03-04 12:53:04 503

原创 ubuntu 安装arm交叉编译器

1

2020-03-03 20:42:15 956

原创 ubuntu开启SSH服务

环境:ubuntu16sudo apt-get install openssh-server配置文件默认

2020-03-03 20:13:09 105

原创 ubuntu开启NFS服务

环境:ubuntu16.041.安装NFS服务sudo apt-get install nfs-kernel-server rpcbind2.在用户目录下创建nfs文件夹 目录/home/arjun/linux/nfssudo mkdir /home/arjun/linux/nfs3.修改文件参数 文件位置 /etc/exportssudo vim /etc/export...

2020-03-03 20:11:26 305

原创 ubuntu中开启FTP服务与window 交互文件

环境:ubuntu16.041.sudo apt-get install vsftpd2.sudo vim /etc/vsftpd.conf文件中添加local_enable =YESwrite_enbale =YES3.重启ftp服务sudo /etc/init.d/vsftpd restartwindow中安装fileziflla...

2020-03-03 19:52:58 155

原创 20190909 Python 练习记录

>>> from io import StringIO>>> f=StringIO()>>> f.write('hello')5>>> f.write('')0>>> f.write(' ')1>>> f.write('world')5>>> print...

2019-09-09 20:52:07 128

原创 20190904 Python 练习记录

>>> f=open('d:test.txt','r')>>> f.read()'adal啊的房间'>>> f=close()Traceback (most recent call last): File "<pyshell>", line 1, in <module>NameError: name 'cl...

2019-09-04 21:54:17 553

原创 20190903 Python 练习记录

越来越难。import unittestfrom mydict import Dictclass TestDict(unittest.TestCase): def test_init(self): d=Dict(a=1,b='test') self.assertEqual(d.a,1) self.assertEqual(d....

2019-09-03 22:17:28 126

原创 20190902 Python练习记录

>>> def foo(s): n=int(s) if n==0: assert n!=0 ,'n is Zero!' return 10/ndef main(): foo('0') File "<pyshell>", line 4 assert n!=0 ,'n is Zero!' ^...

2019-09-02 21:27:05 85

原创 20190601 Python练习记录

>>> def foo(): r=some_function() if r==(-1): return (-1) return rdef bar(): r=foo() if r==(-1): print('Error') else: pass>>> try:...

2019-09-01 23:01:03 123

原创 20180831 Python练习记录

>>> def fn(self,name='world'): print('Hello,%s'%name) >>> Hello=type('Hello',(object,),dict(hello=fn))>>> h=Hello()>>> h.hello()Hello,world>>&gt...

2019-08-31 22:40:03 884

原创 20190829 Python 练习记录

>>> from enum import Enum,unique>>> @unique... class Weekday(Enum):... sum = 0... mon =1... tue =2... wed =3... thu=4... fri=5...>>> day1=W...

2019-08-29 23:10:14 78

原创 20190827 Python 练习记录

>>> from enum import Enum>>> Month=Enum('Month',('jan','feb','may','arp','jun'))>>> for name ,member in Month.__members__.items(): print(name,'=>',member,',',member...

2019-08-27 22:00:08 371

原创 20190820 Python 练习记录

Python 3.7.2 (bundled)>>> class student(object): pass>>> s=student()>>> s.name ='sxj'>>> print(s.name)sxj>>> def set_age(self,age): self.age...

2019-08-20 23:09:30 757

原创 20190819 Python 练习记录

class Student(object): def __init__(self,name,score): self.__name=name self.__score=score def print_score(self): print('%s %s'%(self.__name,self.__score))bart=Student...

2019-08-19 22:35:43 281

原创 20190817 Python 练习记录

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32Type "copyright", "credits" or "license()" for more information.>>> def f(x): return x*x&gt...

2019-08-17 23:34:20 486

原创 20190815 Python 练习记录

>>> list(range(1,11))[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]>>> x=[x*x for x in range(1,11)]>>> x[1, 4, 9, 16, 25, 36, 49, 64, 81, 100]>>> [x+y for x in 'abc' for y in...

2019-08-15 23:16:18 433

原创 20190814 Python 练习记录

>>> d={'michael':95,'bob':75,'Tracy':85}>>> d{'michael': 95, 'bob': 75, 'Tracy': 85}>>> d['bob']75>>> d['bob']=77>>> d{'michael': 95, 'bob': 77, 'Tr...

2019-08-14 23:02:48 332

原创 20190812 Python 练习记录

Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for more information.>>> ds={'Michael':75,'bob':...

2019-08-12 23:53:06 707

原创 20190811Python 练习记录

>>> 3>2True>>> no TrueSyntaxError: invalid syntax>>> not TrueFalse>>> 'adc'.encode('ascii')b'adc'>>> 中文.encode('ascii')Traceback (most recent c...

2019-08-11 23:09:26 329

原创 MQTT协议之中国移动ONENET

oneNET 免费服务器。MQTT服务器ip地址和端口 183.230.40.39:6002MQTT协议的14个命令名字 值 流向 描述 CONNECT 1 C->S 客户端请求与服务端建立连接 CONNACK 2 S->C 服务端确认连接建立 PUBLISH 3 CóS 发布消息 PU...

2019-05-16 21:47:30 3038 2

转载 spi协议相关知识点

SPI串行同步时钟可以设置为不同的极性(Clock Polarity ,CPOL)与相位(Clock Phase ,CPHA)。时钟的极性(CPOL)用来决定在总线空闲时,同步时钟(SCK)信号线上的电位是高电平还是低电平。当时钟极性为0时(CPOL=0),SCK信号线在空闲时为低电平;当时钟极性为1时(CPOL=1),SCK信号线在空闲时为高电平;时钟的相位(CPHA)用来决定何时进行信...

2019-03-03 21:09:32 284

原创 STM32关于USART3 DMA使用

DMA,即直接内存存储,在一些数据的传输中,采用DMA方式,从而将CPU解放出来。USART3使用DMA 通道3。usart3配置 UART3 RX3---&gt;PB.11 TX3 ---&gt;PB.10 GPIO_InitTypeDef GPIO_InitStructure;USART_InitTypeDef USART_InitStructur...

2018-07-27 10:53:01 10207 3

原创 python:hello world

1.安装Python 3.62.安装文本编辑器 Sublime Textprint('hello world')print 前不能有空格1.有空格2.没空格

2018-06-10 22:38:15 124

原创 STM32关于操作内部FLASH整理

stm32的FLASH分为主存储块、信息块和闪存存储器接口寄存器等 3 部分组成。 主存储块用于保存具体的程序代码和用户数据。起始地址0x08000000,b0和b1接GND从这里开始执行程序。信息块用于负责由stm32出厂时放置2KB的启动程序(BootLoader)和512B的用户配置信息区。启动程序代码,是用来存储 ST 自带的启动程序,b0接3.3v,b1接GND运行的就是这部分代码 ,用...

2018-03-30 21:58:26 10955 3

原创 浮点转字符串

/*******************************************函数名称: Float2Char函数功能:浮点数转字符串参   数:无        返回 值: 无********************************************/ void Float2Char(float value, unsigned char *array){      u16...

2018-03-29 16:31:15 2783

原创 STM32关于IAP程序升级几个小知识

1.bootLoader文件按正常工程编译。2.app文件需要编译成bin格式文件。   hex文件与bin文件区别      a.hex文件中包含了数据和地址信息,bin文件中只包含了数据。      b.bin文件右键单击属性可以看到其文件大小,hex文件看到的不是实际大小,其中包含了其他信息。 bin文件格式  对二进制文件而言,其实没有”格式”。文件只是包括了纯粹的...

2018-03-26 22:34:14 2754

转载 STM32关于内部架构

转自https://www.cnblogs.com/yihuihong/p/4965997.html1.芯片结构组成图: 2.STM32内部结构: 3.Cortex-M3模块结构图: 4.STM3210X内部结构:桥:四个主动单元 :        M3内核的ICode总线(I-bus)、DCode总线(D-bus)、 系统总线(S-bus)、DMA(DMA1、DMA2、以太网DMA)  四个被动...

2018-03-26 11:39:50 5067 1

原创 c语言中c99

SX1276SetReset( RADIO_RESET_ON );  //复位sx1278  引脚拉低        // Wait 1ms    uint32_t startTick = GET_TICK_COUNT( );    while( ( GET_TICK_COUNT( ) - startTick )     SX1276SetReset( RADIO_RE

2018-02-01 14:54:55 349

HC32F460基于Keil MDK 移植 RT-Thread Nano

由于大环境影响目前正在更换使用HC32F460 ,HC32F460各个模块也在根据厂家demo摸索移植中,rtos也准备替换为更给力的rtthead。

2021-08-12

HN1629CG-Mingtek.pdf

HN1629CG,HN1664CG,HN1666CG,HN1667CG,HN1674CG 10/100 Base-T Single Port Transformer For Modules IEEE 802.3u and ANSIX3.263 standards including 350µH OCL with 8mA bias Symmetrical TX and RX channels for auto MDI/MDIX capability

2020-08-25

cube_fw_f1_V180.zip

STM32Cube_FW_F1_V1.8.0版本。直接用CUBEMX导入即可。

2019-08-12

iap for stm32vct6 串口实现简单iap功能

芯片是stm32vct6可以直接使用。iap代码使用串口1,需要修改其他串口 usart.h中修改宏定义。需要设置偏移位置在iap.h中。app代码流水灯,串口1回环。简单功能,后期慢慢加一下协议。

2018-09-04

iap for stm32c8t6 串口实现简单iap功能

iap代码使用串口3,需要修改其他串口 usart.h中修改宏定义。需要设置偏移位置在iap.h中。app代码流水灯,串口3回环。简单功能,后期慢慢加一下协议。

2018-09-04

RC522forStm32

stm32驱动rc522。包含了硬件spi,寻卡,防冲撞,选定卡片,写块,读块。里面含有说明,需要修改芯片,请自行修改。

2017-08-19

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除