Button.rar

  • Hussain001
    了解作者
  • C/C++
    开发工具
  • 13KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-10-31 21:30
    上传日期
Button design for stabilizer
Button.rar
  • Button
  • Button.hex
    739B
  • Button.c
    1.7KB
  • Buttons.jpg
    11.7KB
  • Button.mcppi
    825B
  • Button.cfg
    1.2KB
  • Buttons.xml
    285B
内容介绍
/* * Project name: Button (Demonstration of using Button Library) * Copyright: (c) Mikroelektronika, 2019. * Revision History: - Initial release * Description: This program demonstrates usage on-board button as PORTB input. On every RB0 one-to-zero transition PORTD is inverted. * Test configuration: MCU: PIC18F97J94 http://ww1.microchip.com/downloads/en/DeviceDoc/30000575C.pdf Dev.Board: EasyPIC PRO v8 - ac:Buttons https://www.mikroe.com/easypic-pro Oscillator: HS-PLL 64.0000 MHz, 16.0000 MHz Crystal Ext. Modules: None. SW: mikroC PRO for PIC http://www.mikroe.com/mikroc/pic/ * NOTES: - Turn ON the PORTD LEDs at SW4.4 (board specific) - Pull-down PORTB-RB0 - Pull up PORTB button press level at SW5.2 (board specific) */ bit oldstate; // Old state flag void main() { TRISB0_bit = 1; // Set RB0 pin as input TRISD = 0x00; // Configure PORTD as output LATD = 0xAA; // Initial PORTD value oldstate = 0; do { if (Button(&PORTB, 0, 1, 1)) { // Detect logical one oldstate = 1; // Update flag } if (oldstate && Button(&PORTB, 0, 1, 0)) { // Detect one-to-zero transition LATD = ~LATD; // Invert PORTD oldstate = 0; // Update flag } } while(1); // Endless loop }
评论
    相关推荐
    • android button
      自定义button button特效
    • Aero Button
      So now that I've created my own Vista-style glass button by subclassing a QPushButton and repainting it, I thought I'd share my progress with anyone else who might be interested, but is unsure where ...
    • android button
      a在用户进行操作的时候总是会提示出不同的状态,比如当我们按下button时,光标移动到button上并没有按下以及当前状态不在该button时总会显示不同的状态,在Android系统中提供给我们一种方便与实现这种功能的方法即:...
    • rainbow-button
      Button.js Flex.js RedButton.js Text.js ThemeProvider.js index.js theme.js examples/ Box.js Button.js Flex.js RedButton.js Test.js Text.js ThemeProvider.js index.js tests/ snapshots.js ...
    • button android
      效果非常炫的android的button
    • SplitButton
      WPF 的SplitButton~~~~~~~~~~~
    • button数组
      界面编程中,肯定会碰到有多个同一类型的button控件,一个个操作很麻烦。不妨设置一个button数组,利用循环来执行。方便快捷
    • XButton.zip
      Beatiful Button Control Office similar for visual studio in C#
    • Button.zip
      Button using Arduino Digital Port
    • android从bootloader到launcher启动流程整理
      讲述android 开机流程 从boot rom---bootloader---init--zygote---systemserver---ams 并附上自己整理的每个流程的流程图 ,清晰熟悉android 启动流程