rt-thread
楼兰公子
这个作者很懒,什么都没留下…
展开
-
STM32F407基于RT-Thread连接ESP8266WiFi模块
本文是基于RT-Thread实现的STM32F407连接ESP8266模块连接WiFi原创 2022-07-08 19:09:02 · 1164 阅读 · 0 评论 -
[RT-Thread+STM32F407Z]基于STM32F407Z闪灯应用实现
基于STM32F407实现的RTOS 国产RT-Thread 控制led等PA9,PA10定时亮灭变化原创 2022-06-21 14:01:29 · 371 阅读 · 0 评论 -
[STM32F103C806t]RT-thread点亮LED灯
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-06-17 RT-Thread first version */#include <rtthread.h>#include<rtdevice..原创 2021-06-24 19:17:56 · 412 阅读 · 0 评论 -
RT-Thread 下载编译报错
根据出错提示“Error: Unable to reset MCU!”在debug configration中将reset mode有默认的“hardware reset”改为“system reset”解决方案原创 2021-10-05 17:58:11 · 613 阅读 · 0 评论 -
[raspberry pi pico]电路连接图
pico开发板各pin脚功能pico与TFT屏幕的spi连接连接图pico与oled屏幕的IIC连接图原创 2021-07-02 14:14:01 · 1829 阅读 · 2 评论 -
[Raspberry Pi Pico] SPI
SPI是串行外设接口(Serial Peripheral Interface)的缩写。是 Motorola 公司推出的一 种同步串行接口技术,是一种高速的,全双工,同步的通信总线。主要应用在EEPROM、Flash、实时时钟(RTC)、数模转换器(ADC)、网络控制器、MCU、数字信号处理器(DSP)以及数字信号解码器之间。#include <stdio.h>#include <string.h>#include "pico/stdlib.h"#include "ha..原创 2021-06-30 21:07:23 · 757 阅读 · 0 评论 -
[Raspberry Pi Pico ]I2C
I2C总线是一种简单、双向二线制同步串行总线。SDA(串行数据线)和SCL(串行时钟线)都是双向I/O线,接口电路为开漏输出。需通过上拉电阻接电源VCC.当总线空闲时。两根线都是高电平,连接总线的外同器件都是CMOS器件,输出级也是开漏电路。#include <stdio.h>#include <string.h>#include "pico/stdlib.h"#include "hardware/i2c.h"#include "pico/binary_info.h"原创 2021-06-30 21:06:02 · 605 阅读 · 0 评论 -
[Raspberry Pi Pico] PWM 以呼吸灯为例,LED为核心板上的
#include "pico/stdlib.h"#include <stdio.h>#include "pico/time.h"#include "hardware/irq.h"#include "hardware/pwm.h"void on_pwm_wrap() { static int fade = 0; static bool going_up = true; // Clear the interrupt flag that brought us he.原创 2021-06-30 21:02:28 · 722 阅读 · 0 评论 -
[Raspberry Pi Pico] ADC
#include <stdio.h>#include "pico/stdlib.h"#include "hardware/adc.h" // For ADC input:#include "hardware/dma.h"#include "pico/multicore.h"// For resistor DAC output:#include "hardware/pio.h"#include "resistor_dac.pio.h"// Channel 0 is GPIO2.原创 2021-06-30 21:00:42 · 522 阅读 · 0 评论 -
[raspberry pico] gpio火焰模块
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-28 01:56:57 · 137 阅读 · 0 评论 -
[raspberry pico] gpio红外遥控器
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-28 01:37:37 · 854 阅读 · 0 评论 -
[raspberry pico] gpio光敏传感器
#include <rtthread.h>#include <rtdevice.h>#define LED_PIN 25#define SHOCK_PIN 26int main(void){ rt_kprintf("Hello, RT-Thread!\n"); rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT); rt_pin_mode(SHOCK_PIN,PIN_MODE_INPUT); while (1).原创 2021-06-28 01:14:29 · 252 阅读 · 0 评论 -
[raspberry pico] gpio倾斜传感器
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-28 01:08:03 · 183 阅读 · 0 评论 -
[raspberry pico] gpio 水银开关
#include <rtthread.h>#include <rtdevice.h>#define LED_PIN 25#define BEEP_PIN 26#define BUTTON_PIN 27int main(void){ rt_kprintf("Hello, RT-Thread!\n"); rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT); rt_pin_mode(BEEP_PIN,PIN_MODE_IN..原创 2021-06-28 00:50:04 · 218 阅读 · 0 评论 -
[raspberry pico] gpio红外感应器
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-28 00:36:17 · 303 阅读 · 0 评论 -
[raspberry pico] gpio rgb灯
#include <rtthread.h>#include <rtdevice.h>#define LED_PIN 25#define BLUE_PIN 19#define GREEN_PIN 20#define RED_PIN 21int main(void){ rt_kprintf("Hello, RT-Thread!\n"); rt_pin_mode(LED_PIN, PIN_MODE_OUTPUT); rt_pin_mode(GR.原创 2021-06-27 23:47:32 · 177 阅读 · 0 评论 -
[raspberry pico] gpio激光传感器
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-27 23:22:17 · 163 阅读 · 0 评论 -
[raspberry pico] gpio按键开关传感器
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-27 23:07:41 · 170 阅读 · 0 评论 -
[raspberry pico] gpio撞击传感器
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-27 22:46:02 · 123 阅读 · 0 评论 -
[raspberry pico] spi read mpu9250
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-06-27 ubtech the first version */#include <rtthread.h>#include <rtdev.原创 2021-06-27 13:32:57 · 511 阅读 · 0 评论 -
[raspberry pico]I2C bus test
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2021-01-28 flybreak first version */#include <rtthread.h>#include <rtde.原创 2021-06-27 12:39:49 · 288 阅读 · 0 评论 -
rt-thread 编译出错
scons -f qemu-vexpress-a9/SConscriptscons: Reading SConscript files ...scons: *** Import of non-existent variable ''RTT_ROOT''File "/media/mmm/464ED7FB4ED7E1AB/rt-thread/rt-thread-master/bsp/qemu-...原创 2020-01-02 10:55:05 · 733 阅读 · 0 评论