Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
M
mfang2.0
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 92
    • Issues 92
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • 魔方Web开发组
  • mfang2.0
  • Issues
  • #100

Closed
Open
Opened Jun 11, 2021 by Songjuan@SongJuan
  • Report abuse
  • New issue
Report abuse New issue

魔方配置lcd初始化时配置GPIO时请合并同一路的PIN,请参考下面例子

FL_GPIO_InitTypeDef gpioInitStruction;

// GPIO Init
gpioInitStruction.mode = FL_GPIO_MODE_ANALOG;
gpioInitStruction.outputType = FL_GPIO_OUTPUT_PUSHPULL;
gpioInitStruction.pull = FL_DISABLE;

/* 6COM */
gpioInitStruction.pin = FL_GPIO_PIN_0 | FL_GPIO_PIN_1 | FL_GPIO_PIN_2 | 
    FL_GPIO_PIN_3 | FL_GPIO_PIN_4 | FL_GPIO_PIN_5;
FL_GPIO_Init(GPIOA, &gpioInitStruction);

/* SEG*/
gpioInitStruction.pin = FL_GPIO_PIN_6 | FL_GPIO_PIN_7 | FL_GPIO_PIN_8 | FL_GPIO_PIN_9;
FL_GPIO_Init(GPIOA, &gpioInitStruction);

gpioInitStruction.pin = FL_GPIO_PIN_4 | FL_GPIO_PIN_5 | FL_GPIO_PIN_6 |
    FL_GPIO_PIN_7 | FL_GPIO_PIN_8 | FL_GPIO_PIN_9 | FL_GPIO_PIN_10 |
    FL_GPIO_PIN_11 | FL_GPIO_PIN_13 | FL_GPIO_PIN_14;
FL_GPIO_Init(GPIOB, &gpioInitStruction);

gpioInitStruction.pin = FL_GPIO_PIN_5 | FL_GPIO_PIN_11 | FL_GPIO_PIN_12;
FL_GPIO_Init(GPIOC, &gpioInitStruction);

gpioInitStruction.pin = FL_GPIO_PIN_0 | FL_GPIO_PIN_1 | FL_GPIO_PIN_2 | 
    FL_GPIO_PIN_3 | FL_GPIO_PIN_4 | FL_GPIO_PIN_5 ;
FL_GPIO_Init(GPIOD, &gpioInitStruction);
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
低优先级
Assign labels
  • View project labels
Reference: fmsh-web-develop/mfang2.0#100