• 已解决 73482 个问题
  • 已帮助 5993 位优秀工程师

fastrprintln()是什么意思?

神情飒爽 2017-04-06 浏览量:834
fastrprintln()是什么意思?
1 0 收起

我来回答

上传资料:
选择文件 文件大小不超过15M(格式支持:doc、ppt、xls、pdf、zip、rar、txt)
最佳答案
  • 顾名思义,就是快速的打印。里面的代码经过优化了。
    • 发布于 2017-04-06
    • 举报
    • 评论 1
    • 1
    • 0
神情飒爽 回复了 LiuYang:怎么优化的? 回复

其他答案 数量:4
  • 你用的是wido?
    这个命令一般是这样用的:WidoClient.fastrprintln()
    相当于通过Client进行打印

    • 发布于2017-04-06
    • 举报
    • 评论 1
    • 1
    • 0
神情飒爽 回复了 chen0000009 :怎么看出来的? 回复

  • 您好,這是Adafruit_CC3000.h中的函數

    原型如下

    size_t Adafruit_CC3000_Client::fastrprint(const __FlashStringHelper *ifsh)
    {
      char _tx_buf[TXBUFFERSIZE];
      uint8_t idx = 0;
    
      const char *p = (const char PROGMEM *)ifsh;
      size_t n = 0;
      while (1) {
        unsigned char c = pgm_read_byte(p++);
        if (c == 0) break;
        _tx_buf[idx] = c;
        idx++;
        if (idx >= TXBUFFERSIZE) {
          // lets send it!
          n += send(_socket, _tx_buf, TXBUFFERSIZE, 0);
          idx = 0;
        }
      }
      if (idx > 0) {
        // Send any remaining data in the transmit buffer.
        n += send(_socket, _tx_buf, idx, 0);
      }
    
      return n;
    }
    
    這裡也附上Adafruit的cc3000函式庫

    http://cf02.ickimg.com/bbsfiles/201704/b483f202c11753f2e17512bfed384bcf.zip

    以上供參考

    • 发布于2017-04-06
    • 举报
    • 评论 0
    • 1
    • 0

  • 就是输出一行字符串,输出完了会换行
    • 发布于2017-04-06
    • 举报
    • 评论 0
    • 0
    • 0

相关问题

问题达人换一批

fastrprintln()是什么意思?